Re: Function to retrieve autoresizingMask ?
Re: Function to retrieve autoresizingMask ?
- Subject: Re: Function to retrieve autoresizingMask ?
- From: Jim Correia <email@hidden>
- Date: Tue, 6 Jun 2006 21:00:40 -0400
On Jun 6, 2006, at 8:53 PM, Eric Morand wrote:
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)];
Though in this particular case the result will be the same, that is,
IMO, better expressed as
(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} ?
Test the result of -autoresizingMask with the bitwise operators...
Jim
_______________________________________________
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