Re: Why is it like this?
Re: Why is it like this?
- Subject: Re: Why is it like this?
- From: Andy Lee <email@hidden>
- Date: Mon, 30 May 2005 22:00:25 -0400
On May 30, 2005, at 6:49 PM, Brian O'Brien wrote:
On May 30, 2005, at 4:37 PM, Thomas Davie wrote:
On May 30, 2005, at 11:38 PM, Brian O'Brien wrote:
Why do views get mouse and keyboard input but my controller class
doesn't?
Because your controller is not represented in the UI in any way,
so it would be totally illogical for it to get any information
relating to the UI without going through something that is
represented there.
It is a subclass of NSView and has been put on the gui through the
interface builder.
Then the original form of your question was misleading. Even without
knowing that controllers are not usually views, any reasonable person
would have assumed your controller was not a view.
Folks, I appreciate not wasting each other's bandwidth, but can we
please include a *little* context when asking a question? What were
you expecting to happen or trying to make happen, and what actually
happened that was not what you wanted or expected? Brian, in the
case of your problem: how have you determined that your controller/
view is not getting mouse and keyboard input?
Tangentially -- why did you call your object a controller? What
function is it serving that is controller-like? The answers may or
may not be relevant to the answers you get -- i.e., the answer you
get may be "redesign your classes."
--Andy
_______________________________________________
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