Function to retrieve autoresizingMask ?
Function to retrieve autoresizingMask ?
- Subject: Function to retrieve autoresizingMask ?
- From: Eric Morand <email@hidden>
- Date: Wed, 7 Jun 2006 02:53:37 +0200
Hi guys !
Is there a function included in the standard Cocoa frameworks that
returns the autoresizingMasks of an NSView instance ?
Let's say I have a view with autoresizingMask set this way :
[aView setAutoresizingMask:(NSViewWidthSizable + NSViewHeightSizable)];
And now, let's say I want to retrieve those two masks. When I invoke :
[aView autoresizingMask],
...it returns 18. Is there a function that returns an array
containing {2, 16} ?
I know I could code my own function that takes an integer in
parameter and returns the powers of 2 that "compose" this integer,
but maybe there is already a function that deal with this.
Eric.
_______________________________________________
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