Re: 3 IB Qs: actions; view tags; NSWindow setFrame
Re: 3 IB Qs: actions; view tags; NSWindow setFrame
- Subject: Re: 3 IB Qs: actions; view tags; NSWindow setFrame
- From: Brian Webster <email@hidden>
- Date: Fri, 21 Feb 2003 09:05:35 -0600
On Friday, February 21, 2003, at 08:26 AM,
email@hidden wrote:
1) Multiple action targets?
Interface Builder doesn't allow controls to be connected to more than
one
target, for example a button that sends the same action message to
more than
one object. I guess this is by design? What is the suggested approach:
send the
message to a controller-type object for further propagation?
Yes, action methods are usually sent to the controller, which handles
everything having to do with that button press/menu choice/etc.
2) No tags for custom views?
Interface Builder doesn't allow a "tag" value to be assigned to a
custom view.
The Attributes panel is empty and marked as "Not Applicable". Tags are
part of
NSView so it seems that they *could* be applied. Just an oversight?
I don't know if there's some technical reason they can't do this, but
it seems like it should be possible. Put in a feature request at
bugreport.apple.com if you want to see this in a future version.
3) NSWindow setFrame:
NSWindow setFrame: is supposed to set size+origin of recipient window
... but
although my window size changes, its location on screen never does.
Why?
Are you sure you have the correct values in the NSRect you're passing
to the method? When are you calling it?
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.