Re: indexOfTabViewItemWithIdentifier keeps crashing App
Re: indexOfTabViewItemWithIdentifier keeps crashing App
- Subject: Re: indexOfTabViewItemWithIdentifier keeps crashing App
- From: Jiri Volejnik <email@hidden>
- Date: Fri, 10 Dec 2004 09:57:52 +0100
When I run the App, it will return (null) as the index for the first
tab I click. The next tab I select will make the App crash.
What am I doing wrong? Google does offer much information on the topic.
NSLog(@"current idx %@",[tabView indexOfTabViewItem:[tabView
selectedTabViewItem]]);
You are passing an integer to the NSLog, but you tell NSLog it's a
string. Change %@ to %d an it will work:
NSLog(@"current idx %d",[tabView indexOfTabViewItem:[tabView
selectedTabViewItem]]);
Jirka
_______________________________________________
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