• 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: Eric Morand <email@hidden>
  • Date: Wed, 7 Jun 2006 03:10:42 +0200

Though in this particular case the result will be the same, that is, IMO, better expressed as

(NSViewWidthSizable | NSViewHeightSizable)]

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


Test the result of -autoresizingMask with the bitwise operators...

The bitwise operators ? Could you give me an example ?




Eric.

Le 7 juin 06 à 03:00, Jim Correia a écrit :

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

_______________________________________________ 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
  • Follow-Ups:
    • Re: Function to retrieve autoresizingMask ?
      • From: Andrew Bowman <email@hidden>
    • Re: Function to retrieve autoresizingMask ?
      • From: Nick Zitzmann <email@hidden>
References: 
 >Function to retrieve autoresizingMask ? (From: Eric Morand <email@hidden>)
 >Re: Function to retrieve autoresizingMask ? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Function to retrieve autoresizingMask ?
  • Next by Date: Custom IB palette: Is there a way to use parent's IB inspector and also add new features to it?
  • Previous by thread: Re: Function to retrieve autoresizingMask ?
  • Next by thread: Re: Function to retrieve autoresizingMask ?
  • Index(es):
    • Date
    • Thread