Re: NSOpenPanel
Re: NSOpenPanel
- Subject: Re: NSOpenPanel
- From: "Laurent Daudelin" <email@hidden>
- Date: Fri, 03 Oct 2003 12:01:20 -0400
Isn't the 'count' method returning an int instead of an object?
-Laurent.
--
===========================================================================
Laurent Daudelin Developer, Multifamily, ESO, Fannie Mae
mailto:email@hidden Washington, DC, USA
************************* Usual disclaimers apply *************************
>
From: "Malcolm Sharman" <email@hidden>
>
Date: Sat, 04 Oct 2003 01:52:11 +1000
>
To: email@hidden
>
Subject: NSOpenPanel
>
>
Hi All
>
>
I don't entirely understand why the NSLog() line of code is crashing..
>
>
>
result = [panel runModalForDirectory:NSHomeDirectory() file:nil
>
types:nil];
>
if (result == NSOKButton) {
>
NSArray *files = [panel filenames];
>
>
NSLog(@"*** %@ items in array ***", [files count]);
>
...
>
}
>
>
I'm just confused as to why accessing the count method of NSArray would
>
crash when I just initalised it. Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >NSOpenPanel (From: Malcolm Sharman <email@hidden>) |