• 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: Interface Builder and NSView isFlipped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Interface Builder and NSView isFlipped (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: Apple-S no longer save in Interface Builder
  • Next by Date: Re: Apple-S no longer save in Interface Builder
  • Previous by thread: Re: Interface Builder and NSView isFlipped
  • Next by thread: Re: Apple-S no longer save in Interface Builder
  • Index(es):
    • Date
    • Thread