Re: Tracking down issue; Bad call?
Re: Tracking down issue; Bad call?
- Subject: Re: Tracking down issue; Bad call?
- From: email@hidden
- Date: Thu, 11 Dec 2008 11:32:35 -0500
Thank you for the reply.
For clarification:
- (void)awakeFromNib
{
//...
sDefDir = NSHomeDirectory();
[sDefDir retain];
//...
}
I added the retain per a different response and that cleared up my issue.
Knowing about the retain also added some clarity as to how the overall
system operates too...
Thanks guys!
Peace, Love, and Light,
/s/ Jon C. Munson II
Quoting "I. Savant" <email@hidden>:
On Thu, Dec 11, 2008 at 10:20 AM, <email@hidden> wrote:
sDefDir is a class member NSString that is set on awakeFromNIB (set to
NSHomeDirectory). I know it has a value because it is used to prior to any
of this stuff and works fine. It is only set in awakeFromNIB and remains
unchanged otherwise.
....
'Course this leads to me ask WHY is sDefDir invalid??? What happened to it
and where did it happen? I don't have any other place in the code that sets
sDefDir - only awakeFromNIB.
How can we know? You never show us where or how you create "sDefDir".
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden