• 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: addTabViewItem exception was:(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: addTabViewItem exception was:(no subject)


  • Subject: Re: addTabViewItem exception was:(no subject)
  • From: J Nozzi <email@hidden>
  • Date: Thu, 5 Feb 2004 16:22:05 -0500

Don't know why the colon didn't come through - it's fine in my code. However, the problem is solved. But I have NO IDEA how this happened.

There is code that gets executed before this method is called (to update the NSTabView with a user-customizable list of tabs) that has NOTHING to do with either the user-customizable list of tabs OR the NSTabView instance themselves.

Apparently, another object was failing silently (when it should've raised an exception). When I commented out the code to update the NSTabView, I got the exact same exception, but in an entirely different method, even though I stepped through before and it flagged the addTabViewItem call when it died ...

It's as if there was a problem with the debugger. It was most certainly flagging an unrelated line of code, yet I can only conclude (out of sheer ignorance, admittedly) that when the allocation and initialization of a totally different object in a different, unrelated method failed, another object down the line fell into the resulting pothole in memory? This is SHEER ignorant speculation, mind you, but it's the only possibility that pops into my mind besides (gasp) a bug in XCode.

... which isn't altogether improbable. There are all kinds of odd happenings (yes, I've filed reports). Some of those problems can be cleared up by cleaning the target. Others require completely restarting XCode and IB.

But more than likely, it was a memory issue. Can anybody elaborate / educate me here?

- J



On Feb 5, 2004, at 4:12 PM, Jens Bauer wrote:

-I just noticed that you're missing out a colon after "initWithIdentifier"; ofcourse, if you didn't copy/paste from your sources, this wouldn't be the source of the problem...


Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: addTabViewItem exception was:(no subject)
      • From: Jens Bauer <email@hidden>
References: 
 >Re: addTabViewItem exception was:(no subject) (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: addTabViewItem exception was:(no subject)
  • Next by Date: Re: Unwanted retain
  • Previous by thread: Re: addTabViewItem exception was:(no subject)
  • Next by thread: Re: addTabViewItem exception was:(no subject)
  • Index(es):
    • Date
    • Thread