• 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: Category class method problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Category class method problem


  • Subject: Re: Category class method problem
  • From: Andy Lee <email@hidden>
  • Date: Thu, 9 Mar 2006 14:36:01 -0500

On Mar 9, 2006, at 2:26 PM, Kaspar Fischer wrote:
    name = [NSString stringWithFormat:@"%@/%d-%d.%@", // (*)
            [[NSProcessInfo processInfo] processIdentifier],
            (int)[NSDate timeIntervalSinceReferenceDate],
            sequenceNumber,
            extension];

-processIdentifier returns an int, whereas your format string expects an object. The crash occurs because -stringWithFormat: tries to dereference an int as an object pointer.


Maybe you meant -processName?

--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Category class method problem
      • From: Kaspar Fischer <email@hidden>
References: 
 >Category class method problem (From: Kaspar Fischer <email@hidden>)

  • Prev by Date: Re: Undo and NSArrayController and CoreData
  • Next by Date: Re: Design Decision: Passing Information Between Two Applications
  • Previous by thread: Category class method problem
  • Next by thread: Re: Category class method problem
  • Index(es):
    • Date
    • Thread