NSWindowExposedEventType
NSWindowExposedEventType
- Subject: NSWindowExposedEventType
- From: "Thomas Martin" <email@hidden>
- Date: Fri, 20 Sep 2002 14:46:24 -0600
I am new to this mailing list - here is my problem:
I would like to be able to intercept and process the NSAppKitDefined
NSEvent-s of subType NSWindowExposedEventType when the non-retained
NSWindow-s of my application become exposed.
In the applicationDidFinishLaunching method of my NSApplication's delegate,
I stop the main eventloop with [NSApp stop]. My programs main() then calls
my own EventLoop procedure, which in turn calls [NSApp nextEventMatchingMask
: NSAnyEventMask untilDate: [NSDate distantFuture] inMode :
NSDefaultRunLoopMode deque : YES ]. The dequed NSEvents are type-examined
by a following switch. If the current type is NSAppKitDefined, the subType
is examined by another switch. - I would have expected to be able to observe
the occurance of NSEvents with the subType of NSWindowExposedEventType, if
my windows with backing = NSBackingStoreNonretained are getting exposed.
However, such event do NEVER occur.
Any sugguestion is greatly appreciated!
Thank you very much in advance!
Sincerely,
Thomas
PS: On a second note - I could not find any documentation on the details of
NSEvent's -(int)data1 and -(int)data2 functions. I would like to find out,
how the returned integer values need to be interpreted according to the
designated event types (i.e. NSAppKitDefined, etc.)
_______________________________________________
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.