Re: Window Styles
Re: Window Styles
- Subject: Re: Window Styles
- From: David Reed <email@hidden>
- Date: Fri, 14 May 2004 16:01:48 -0400
1) How can can you get another another window style for a window in IB
???,
"Window style"? Not sure whether you mean Brushed Metal or just
altering the attributes, but both may be found in the inspector.
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 ???
Don't do it. That is an unnecessary, error-prone way to do things. Use
nibs. SEL is a ObjC type representing a method, one gets these from
@selector(...) compiler directives. This is amply documented in Apple's
Objective-C material.
[myButton SetTarget: myController::doOKButton ];
What's with the ::? Are you using Objective-C++? Anyway, the correct
syntax is [myButton setTarget:myController];
[myButton setAction:@selector(myAction:)];
Thanks
Mark.
_______________________________________________
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.
_______________________________________________
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.