• 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: Odd Top Level Objects Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Odd Top Level Objects Issue


  • Subject: Re: Odd Top Level Objects Issue
  • From: Jonathan Dann <email@hidden>
  • Date: Fri, 16 Jan 2009 21:25:21 +0100

Hi Jon,

I can replicate it in Simulator OS 2.0, 2.1 and 2.2 in both the standard debug and release modes. Not tested it on the device yet.

Jonathan

http://espresso-served-here.com

On 16 Jan 2009, at 21:19, Jonathan Hess wrote:

Hey Shawn -

This is a bug in nib loading. I believe the issue is that you're running on iPhone OS 2.0, or the iPhone OS 2.0 simulator. This bug was fixed in iPhone OS 2.1. You can control which iPhone OS Simulator version you run against in the project menu in Xcode.

As Kevin suggests, using an outlet is an easy way to workaround this problem.

Sorry for the trouble -
Jon Hess

On Jan 16, 2009, at 12:11 PM, Jonathan Dann wrote:

On 16 Jan 2009, at 20:14, Shawn Erickson wrote:

On Fri, Jan 16, 2009 at 11:01 AM, Jonathan Dann <email@hidden> wrote:

Do you know why UINib would be instantiating an NSObject at all? Why would
this be a useful thing for it to do?

Since it is returning this to you as a top-level object when you
instantiate the nib it is highly likely that you have such an object
serialized in your nib. Do you have a simple XIB file that shows this
issue that you can share?


-Shawn

Hi Shawn,

That's the odd thing. At first I thought it would be an object in nib, however this object doesn't show either in the IB UI or in the XML of the XIB file.

Also, it's the same object that's returned no matter which nib I'm loading. Indicating that UINib may be instantiating it once and, for some reason, appending it to the top-level objects when the array is returned to me.

Furthermore, the issue is replicated on both my new iMac, on which Xcode 3.1.2 was installed today, and also my old MBP, which was wiped yesterday and the OS and Xcode re-installed. The same issue (with exactly the same project files) isn't occurring on a friend's MacBook. I'm hesitant to suggest it, but maybe this is the result of some change in the nib compiler.

Here's the offending MainWindow.xib:

<MainWindow.xib>


Thanks again for your suggestion, I appreciate it.

Jonathan

http://espresso-served-here.com _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Odd Top Level Objects Issue
      • From: Jonathan Dann <email@hidden>
References: 
 >Odd Top Level Objects Issue (From: Jonathan Dann <email@hidden>)
 >Re: Odd Top Level Objects Issue (From: Kevin Cathey <email@hidden>)
 >Re: Odd Top Level Objects Issue (From: Jonathan Dann <email@hidden>)
 >Re: Odd Top Level Objects Issue (From: Shawn Erickson <email@hidden>)
 >Re: Odd Top Level Objects Issue (From: Jonathan Dann <email@hidden>)
 >Re: Odd Top Level Objects Issue (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: Odd Top Level Objects Issue
  • Next by Date: Re: Odd Top Level Objects Issue
  • Previous by thread: Re: Odd Top Level Objects Issue
  • Next by thread: Re: Odd Top Level Objects Issue
  • Index(es):
    • Date
    • Thread