• 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: Function to retrieve autoresizingMask ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function to retrieve autoresizingMask ?


  • Subject: Re: Function to retrieve autoresizingMask ?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 6 Jun 2006 19:41:07 -0600


On Jun 6, 2006, at 7:10 PM, Eric Morand wrote:

I've always thought that + and OR were the exact same thing in logical operations...

No. For example, 22+2=24, but 22|2=22.

The bitwise operators ? Could you give me an example ?

All you need to do to find out whether or not a bit is set in an autoresize mask is to take the result of -autoresizingMask and AND it by whatever you want to check. If the result is > 0, then it's true; if not, it's false. So [view autoresizingMask] & NSViewWidthSizable is > 0 if the view's width is flexible.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Function to retrieve autoresizingMask ? (From: Eric Morand <email@hidden>)
 >Re: Function to retrieve autoresizingMask ? (From: Jim Correia <email@hidden>)
 >Re: Function to retrieve autoresizingMask ? (From: Eric Morand <email@hidden>)

  • Prev by Date: Re: Custom IB palette: Is there a way to use parent's IB inspector and also add new features to it?
  • Next by Date: is it possible to recover source from .o or .ob files?
  • Previous by thread: Re: Function to retrieve autoresizingMask ?
  • Next by thread: Re: Function to retrieve autoresizingMask ?
  • Index(es):
    • Date
    • Thread