• 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: 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


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

  • Prev by Date: Re: Aqua icons from system fonts
  • Next by Date: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Previous by thread: Re: indexOfTabViewItemWithIdentifier keeps crashing App SOLVED
  • Next by thread: Re: indexOfTabViewItemWithIdentifier keeps crashing App
  • Index(es):
    • Date
    • Thread