Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
I don't have time to wade through old source FTP directories and decipher them. What does the NextStep storage class do for you, specifically?
At a glance, it looked like it was replaced by NSKeyedArchiver, but I only spent a minute glancing at it.
Thanks... NSKeyedArchiver seems to do everything I need, but it is troubling that I never would have found it without you pointing it out. Is there a document somewhere that says something like, for example, NSCoder sort of replaces NXTypedStream, NSKeyedArchiver sort of does what Storage class did...etc., etc..
The problem is not that documentation is scarce, it is that it is so vast and at so many levels and so scattered across Apple, NextStep, OpenStep and elsewhere, that it is seems tough to find relatively simple information.
The other surprise, now seemingly a little cosmic joke on me, was that when I was in software, everyone talked up a storm about C++ and I, being a former C developer, spent YEARS learning the goofy quirky exception ridden C++ language whereas now, converting this old NextStep program involved with a biomedical application, I learn to my surprise that objective-c is far cleaner, more sensible and common-sensible than C++ ever seemed to be. I knew something was wrong when I started on Alexandrescu's C++ Template book, now a dim but terrifying memory, and found soon that easier things like solving the riddle of the Sphinx or deciphering Voynitch might have served my time better. Anyway...
Thanks!
CJ
C++ is, and always has been, extremely convoluted. I remember loving it for many years. Then again, I loved x86 Assembly while in college. I really don't wish to touch either one again (but especially not C++, although to be honest I never used any form of assembly outside of school... but I do think I'd prefer it if I had to choose).
As far as documentation mapping NeXTSTEP to Cocoa, I doubt you'll find any, other than perhaps scattered blog posts (or perhaps scattered USENET posts, even). Probably the best place to understand the mapping would be to read up on the Cocoa docs, so you can make guesses as to any correlation along the way.
And, yeah, I think Objective-C is pretty nice, too.
__________________ Recall It!Tag your notes. Tag your photos. Tag your thoughts. Tag your life.
Thanks... NSKeyedArchiver seems to do everything I need, but it is troubling that I never would have found it without you pointing it out. Is there a document somewhere that says something like, for example, NSCoder sort of replaces NXTypedStream, NSKeyedArchiver sort of does what Storage class did...etc., etc..
The problem is not that documentation is scarce, it is that it is so vast and at so many levels and so scattered across Apple, NextStep, OpenStep and elsewhere, that it is seems tough to find relatively simple information.
The other surprise, now seemingly a little cosmic joke on me, was that when I was in software, everyone talked up a storm about C++ and I, being a former C developer, spent YEARS learning the goofy quirky exception ridden C++ language whereas now, converting this old NextStep program involved with a biomedical application, I learn to my surprise that objective-c is far cleaner, more sensible and common-sensible than C++ ever seemed to be. I knew something was wrong when I started on Alexandrescu's C++ Template book, now a dim but terrifying memory, and found soon that easier things like solving the riddle of the Sphinx or deciphering Voynitch might have served my time better. Anyway...
Thanks!
CJ
I know Objective C/Cocoa/Cocoa touch quite well, but don't have any experience with NeXt.
I know a few people, including a consultant we've worked with, who are old NeXt hands who also do Cocoa development. I imagine they'd be available to hire if you need some help. If you just need guidance on the modern replacements for things, it shouldn't be that involved, either. Send me a PM if you want to persue it.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.
C++ is, and always has been, extremely convoluted. I remember loving it for many years. Then again, I loved x86 Assembly while in college. I really don't wish to touch either one again (but especially not C++, although to be honest I never used any form of assembly outside of school... but I do think I'd prefer it if I had to choose).
As far as documentation mapping NeXTSTEP to Cocoa, I doubt you'll find any, other than perhaps scattered blog posts (or perhaps scattered USENET posts, even). Probably the best place to understand the mapping would be to read up on the Cocoa docs, so you can make guesses as to any correlation along the way.
And, yeah, I think Objective-C is pretty nice, too.
Thanks!
Ya I need some Cocal with my morning tea definitely. Another example, I needed to know what values the constants NX_COLORWHITE, NX_COLORBLACK, NX_COLORBLUE etc.. were. I found them all defined as small hex numbers 0x01, 0x02 etc., three or four days ago in a header file (originally defined in some header file in objc/ ) on the web,
I'm fairly sure it was in the Coca documentation somewhere, perhaps without the "NX" prefix, or as NS_COLORWHITE etc., and "thought" that I had bookmarked it. Later went back to my browser to go to the site and "oops" no book mark!! No problem, I'll just search again. Great moments in google search bumbling, now I can't find it. Typical.
Anyway, great forum here for information exchange, again thanks to everyone.
I know Objective C/Cocoa/Cocoa touch quite well, but don't have any experience with NeXt.
I know a few people, including a consultant we've worked with, who are old NeXt hands who also do Cocoa development. I imagine they'd be available to hire if you need some help. If you just need guidance on the modern replacements for things, it shouldn't be that involved, either. Send me a PM if you want to persue it.
Thanks I'll keep that in mind but this is just a small app I'm doing for my interest, more for research and curiosity. I must say I'm impressed with objective-c which I never paid much attention to.
By the way, those animation tutorial postings (cf. links at end of your post) were quite interesting, thanks!
Now I will have some tea and go back to google to see if I can find what NX_COLORBLACK AND NX_COLORBLUE are defined as. I found them defined, or something like them defined, I think, in a header file some where and managed to lose the link. Then searched and couldn't find it again. This will get easier when semantic web gets a little more along, I'm sure.
Ya I need some Cocal with my morning tea definitely. Another example, I needed to know what values the constants NX_COLORWHITE, NX_COLORBLACK, NX_COLORBLUE etc.. were. I found them all defined as small hex numbers 0x01, 0x02 etc., three or four days ago in a header file (originally defined in some header file in objc/ ) on the web,
I'm fairly sure it was in the Coca documentation somewhere, perhaps without the "NX" prefix, or as NS_COLORWHITE etc., and "thought" that I had bookmarked it. Later went back to my browser to go to the site and "oops" no book mark!! No problem, I'll just search again. Great moments in google search bumbling, now I can't find it. Typical.
Anyway, great forum here for information exchange, again thanks to everyone.
CJ
In Cocoa touch, there are several ways to represent colors.
The easiest is an object called UIColor.
There are class methods to create the common colors:
There are also class methods to create UIColors with arbitrary R/G/B/A values, or hue/saturation/brightness/alpha.
Most of the high level UIKit objects take UIColors as a parameters.
A low level color is described with a GCColorRef. That is a Core Foundation object, which uses C APIs. UIColor has a CGColor property that returns the internal CGColorRef used to represent the UIColor.
There is also a type CIColor that represents a color in Core Image. As to why Apple did that, I don't know. Core Image was added to iOS in iOS 5, so 5.0, so it isn't widely used yet.
Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.