warning: initialization makes pointer from integer without a cast
warning: initialization makes pointer from integer without a cast
- Subject: warning: initialization makes pointer from integer without a cast
- From: Sandy Santra <email@hidden>
- Date: Fri, 24 Apr 2009 16:43:49 -0400
That's the error, here's the code:
void PrintProcessInfo() {
NSString *processName = [[NSProcessInfo processInfo] processName]; NSString *processIdentifier = [[NSProcessInfo processInfo] processIdentifier]; //Line 2 (must be a better way!) NSLog(@"Process Name: '%@'.", processName); NSLog(@"Process ID: '%i'.", processIdentifier); }
My output is fine:
2009-04-24 16:37:29.957 Test[31166:10b] Process Name: 'Test'. 2009-04-24 16:37:29.957 Test[31166:10b] Process ID: '31166'.
but I'm going nuts over this error (warning). Any help appreciated. I've just spent way too many hours trying to figure this out. Documentation says the method for the ID is "- (int)processIdentifier" but I don't know how to work that into this code. And I have a bad feeling about Line 2.
Thanks. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden