On Feb 20, 2013, at 11:42:24, Kyle Sluder
wrote:
> This isn't true. Events come in different flavors. You can't ask for the
> mouse position for a flags-changed event, for example. Since the mouse
> is decoupled from any individual application, it makes sense to
> sometimes ask for its current p
On Wed, Feb 20, 2013, at 08:21 AM, Steve Mills wrote:
> Because with proper Cocoa event, you're given everything you need rather
> than having to get it via brute force (get global point, convert to
> window coords, and convert to view coords). I was hoping someone might
> point out something that
On Feb 20, 2013, at 10:02:37, Kyle Sluder
wrote:
> On Feb 20, 2013, at 7:55 AM, Steve Mills wrote:
>
>> At this point, I should hilite that same area with the "hover" image. Yet I
>> can't because the only thing I can think of doing the "right" way would be
>> to receive a NSWindowDidBecomeK
On Feb 20, 2013, at 7:55 AM, Steve Mills wrote:
> At this point, I should hilite that same area with the "hover" image. Yet I
> can't because the only thing I can think of doing the "right" way would be to
> receive a NSWindowDidBecomeKeyNotification notification. But this doesn't
> give me th
On Feb 19, 2013, at 17:37:26, Shane Stanley wrote:
> Don't you mean:
>
> [center addObserver:self selector:@selector(windowDidResignKey:)
Doh! Thanks. First time I've used @selector since the early days of Cocoa.
So now I have that working, and am handling mouseEntered, mouseMoved,
mou
On 20/02/2013, at 4:16 AM, Steve Mills wrote:
> [center addObserver:self selector:@selector(windowDidResignKey)
Don't you mean:
[center addObserver:self selector:@selector(windowDidResignKey:)
--
Shane Stanley
'AppleScriptObjC Explored'
_
On Feb 18, 2013, at 16:46:10, Fritz Anderson wrote:
> "Notified" is the right word. NSWindow posts NSWindowDidResignKeyNotification
> and NSWindowDidResignMainNotification. There are also delegate methods with
> nearly the same names (which get passed the same notification objects).
Ah, thanks
On Feb 18, 2013, at 2:34 PM, Steve Mills wrote:
>
> Shouldn't I get a mouseExited message when I switch windows via command-` if
> the mouse is still within my tracking area? If not, what do I have to do to
> be notified when the window the view is no longer the active window?
I'm not certain
On 18 Feb 2013, at 4:34 PM, Steve Mills wrote:
> what do I have to do to be notified when the window the view is no longer the
> active window?
"Notified" is the right word. NSWindow posts NSWindowDidResignKeyNotification
and NSWindowDidResignMainNotification. There are also delegate methods w
If I set up an NSTrackingArea in my view as so:
NSTrackingArea* trackingArea = [[NSTrackingArea alloc]
initWithRect:box options:(NSTrackingInVisibleRect | NSTrackingMouseMoved |
NSTrackingMouseEnteredAndExited | NSTrackingActiveInKeyWindow) owner:self
userInfo:nil];
Shouldn't I
10 matches
Mail list logo