Re: NSDate And Super Class

2009-02-25 Thread Richard Good
atesubClass* datesubClass = [[DatesubClass alloc]init]; would allocate the On Feb 24, 2009, at 7:01 PM, Andy Lee wrote: On Feb 24, 2009, at 8:25 PM, Richard Good wrote: -(DateTest*)init{ [super init]; aDate =[NSDate date]; return self; } Wait a minute. I just figured out yo

NSDate And Super Class

2009-02-24 Thread Richard Good
subClass* datesubClass = [[DatesubClass alloc]init]; At this point the datesubClass.aDate Instance variable is "out of scope" Richard Good ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: NSArray as a static

2008-09-02 Thread Richard Good
First I do appreciate the help. The code suggested below does what I need it to, but I don't understand something (probably the semantics of 'static'). I know the constants are set only once as I traced the code but, it sure seems like they should be set each time the method is called. I

Re: NSArray as a static

2008-09-01 Thread Richard Good
I think that for some reason even after changing the retain count the strings are being freed. On Sep 1, 2008, at 12:18 PM, Kyle Sluder wrote: On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]> wrote: What I want is how to use the Java idea of a class static varia

NSArray as a static

2008-09-01 Thread Richard Good
xception', reason: '*** Any help would be appreciated. Richard Good ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at