Re: Interface showing wrong values
Re: Interface showing wrong values
- Subject: Re: Interface showing wrong values
- From: Kyle Sluder <email@hidden>
- Date: Wed, 29 Sep 2010 21:47:54 -0700
On Sep 29, 2010, at 7:02 PM, Evan Coleman <email@hidden> wrote:
> I'm having a very strange problem. I can't provide any code because I don't
> know which part of my code is causing the problem. I have an NSMenuExtra,
> and for some reason some labels and image views in an NSView inside of an
> NSMenuItem are displaying their default values (the values that are set in
> interface builder). But when I do [textField stringValue] it returns the
> value it should be displaying, not what is actually displayed. Anyone know
> what's causing this?
Are you sure you're talking to the objects you think you're talking to? Most often this happens because two copies of the views are created, and the code only interacts with the offscreen one.
--Kyle Sluder_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden