• 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: indexOfTabViewItemWithIdentifier keeps crashing App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >indexOfTabViewItemWithIdentifier keeps crashing App (From: Ole Voß <email@hidden>)

  • Prev by Date: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Next by Date: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Previous by thread: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Next by thread: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Index(es):
    • Date
    • Thread