Re: Interface Builder and NSView isFlipped
Re: Interface Builder and NSView isFlipped
- Subject: Re: Interface Builder and NSView isFlipped
- From: "Mark Hewett" <email@hidden>
- Date: Fri, 2 Jan 2009 13:39:11 -0600
Jon - thank you! That worked perfectly.
On Fri, Jan 2, 2009 at 1:27 PM, Jonathan Hess <email@hidden> wrote:
> Hey Mark -
>
> You'll have to workaround this limitation in your application.
>
> You might consider adding something like this to your awakeFromNib
> implementation.
>
> - (void)awakeFromNib {
> for(NSView *view in [self subviews]) {
> NSRect frame = [view frame];
> frame.origin.y = NSMaxY([self bounds]) - NSMaxY([view frame]);
> [view setFrame:frame];
> }
> }
>
> Jon Hess
>
> On Dec 26, 2008, at 12:37 PM, Mark Hewett wrote:
>
>> Is it possible to correctly lay out items (such as NSTextField etc) using
>> Interface Builder when the container view for the items is a subclass where
>> isFlipped returns YES? When I drag/drop to layout things inside my flipped
>> view it looks fine in IB, but once I run the application everything is
>> "backwards" - i.e. things positioned at the top of the flipped view are now
>> at the bottom. It looks like IB has no idea that the view is flipped - is
>> there some way to tell it so it sets the coordinates for child views
>> appropriately?
>>
>> Thanks,
>> Mark
>> _______________________________________________
>> 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