Re: Creating a Cocoa Window in code
Re: Creating a Cocoa Window in code
- Subject: Re: Creating a Cocoa Window in code
- From: Michael Watson <email@hidden>
- Date: Fri, 18 Jan 2008 06:44:53 -0500
On 18 Jan, 2008, at 06:26, Andrew Farmer wrote:
styleMask: NSTitledWindowMask ||
NSClosableWindowMask || NSMiniaturizableWindowMask ||
NSResizableWindowMask
Unrelated to your problem, but you're using the wrong operator here.
A styleMask of 1 won't do you much good.
Felipe,
Andrew alludes to you using the logical OR operator || here instead of
the bitwise OR operator used to combine bitmasks:
maskOne | maskTwo
This page has a very clear, concise explanation of the bitwise
operators:
http://en.wikipedia.org/wiki/Bitwise_operation
--
m-s
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden