Re: indexOfTabViewItemWithIdentifier keeps crashing App
Re: indexOfTabViewItemWithIdentifier keeps crashing App
- Subject: Re: indexOfTabViewItemWithIdentifier keeps crashing App
- From: Ken Ferry <email@hidden>
- Date: Fri, 10 Dec 2004 04:05:54 -0500
On Fri, 10 Dec 2004 09:33:55 +0100, Ole Voß <email@hidden> wrote:
> NSLog(@"current idx %@",[tabView indexOfTabViewItem:[tabView
> selectedTabViewItem]]);
Looks like it's just a bad format string, you typed a %@ where you wanted %d.
> 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.
It's probably a 0 the first time, which is the address of the nil object.
-Ken
_______________________________________________
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