Re: Odd Top Level Objects Issue
Re: Odd Top Level Objects Issue
- Subject: Re: Odd Top Level Objects Issue
- From: Jonathan Hess <email@hidden>
- Date: Fri, 16 Jan 2009 12:19:28 -0800
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