Re: Category class method problem
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