Re: Window Styles
Re: Window Styles
- Subject: Re: Window Styles
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 14 May 2004 14:03:24 -0600
On May 14, 2004, at 12:59 PM, Mark Thomas wrote:
1) How can can you get another another window style for a window in IB
???,
as it seem impossible, somebody mentioned it could be done, but with my
newie status I've got no idea at the minute.
What do you mean by "get another window style for a window in IB"?
2) I'm think of building the window myself as I can see a NWWindow
initWithContent ..., but one thing I wasn't sure when I create the
NSControls (NSButtons), How I attached dynamically the actions of the
controller. I see there is SetTarget, but it takes a SEL ???, What is
one of
one, also what would be the syntax ???
[myButton SetTarget: myController::doOKButton ];
"SEL" is a selector, which points to a method in an object. The
"function" @selector() will return a SEL that you can specify. So if
you had the method:
- (void)doOKButton:(id)sender
...that you want to have called when the OK button is clicked, then
you'd do this:
[myButton setTarget:myController];
[myButton setAction:@selector(doOKButton:)];
Nick Zitzmann
<
http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.