AW: Autorelease pool - was Beginners question regarding NSFileHandle
AW: Autorelease pool - was Beginners question regarding NSFileHandle
- Subject: AW: Autorelease pool - was Beginners question regarding NSFileHandle
- From: "Roger Gilliar" <email@hidden>
- Date: Tue, 7 Aug 2001 16:13:45 +0200
Ok,
>
>
>
>for (;;) {
>
> NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
>
> raw_event_type evt=raw_get_next_event();
>
> interpret_the_event(evt);
>
> [pool release];
>
>}
now I begin to understand. I had some problems to figure out what Cocoa
regards as an event cycle. It looks to me as if the event cycle includes the
complete execution of the code triggered by an event. This is somehow
different to Windows. If you talk about events in Windows, you normaly just
talk about the events in the Windows messaging queue.
Regards
Roger