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 PROTECTED]>:

On Thu, Dec 11, 2008 at 10:20 AM,  <[EMAIL PROTECTED]> 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 (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)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to