• 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
Re: NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: NSOpenPanel
  • Next by Date: Re: Using NSMutableString* for NSString* result
  • Previous by thread: Re: NSOpenPanel
  • Next by thread: Re: NSOpenPanel
  • Index(es):
    • Date
    • Thread