Hi!
I discovered a wierd property of cocoa and cursor rects.
I have three layers of different sizes that are all subclasses of NSView.
They contain cursor-rects and they are not always the same. I want
the cursor to be what the cursor rect of the topmost layer in whatever
area the mouse cursor is positioned above to be the determining one.
And it works properly as long as my mouse cursor never leave the main window.
If it does and I re-enter the window with the cursor, the cursor-rects determability is suddenly sorted, not by layer, but by the time I added them.
So the newer curs-rect always will be the determening one of its area.
Anyone familiar with this problem and/or know of a work-around or solution?
Thanks
Carl
I discovered a wierd property of cocoa and cursor rects.
I have three layers of different sizes that are all subclasses of NSView.
They contain cursor-rects and they are not always the same. I want
the cursor to be what the cursor rect of the topmost layer in whatever
area the mouse cursor is positioned above to be the determining one.
And it works properly as long as my mouse cursor never leave the main window.
If it does and I re-enter the window with the cursor, the cursor-rects determability is suddenly sorted, not by layer, but by the time I added them.
So the newer curs-rect always will be the determening one of its area.
Anyone familiar with this problem and/or know of a work-around or solution?
Thanks
Carl