• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tracking down issue; Bad call?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tracking down issue; Bad call?


  • Subject: Tracking down issue; Bad call?
  • From: email@hidden
  • Date: Thu, 11 Dec 2008 10:20:58 -0500

Namaste!

In my app I have the following (a Save Panel call):

[sp beginSheetForDirectory:sDefDir
		      file:@""
            modalForWindow:[self window]
	     modalDelegate:self
	    didEndSelector:@selector(didEndSaveFileSheet:
                                          returnCode:contextInfo:)
					 contextInfo:nil];


That call then calls this:

- (void)setDownloadPathName:(NSString *)aString
{
     [self willChangeValueForKey:@"mDownloadFolderPath"];
     mDownloadFolderPath = aString;
     [self didChangeValueForKey:@"mDownloadFolderPath"];
}

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.

When I run the program and watch the call, hovering over the variable shows me its value is "invalid." Other runs show it has garbage data. I assume this is why the Save Panel call jumps to where it does, although why there I haven't a clue.

'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.

Anyone have a clue???

Thanks in advance!

Peace, Love, and Light,
/s/ Jon C. Munson II



_______________________________________________

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


  • Follow-Ups:
    • Re: Tracking down issue; Bad call?
      • From: "I. Savant" <email@hidden>
    • Re: Tracking down issue; Bad call?
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Wow - what happened to IB
  • Next by Date: Re: Wow - what happened to IB
  • Previous by thread: How to enable horizontal resizing of the NSOutline view with a minimum width?
  • Next by thread: Re: Tracking down issue; Bad call?
  • Index(es):
    • Date
    • Thread