Re: Function to retrieve autoresizingMask ?
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