• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AW: Autorelease pool - was Beginners question regarding NSFileHandle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Wake and sleep notification
  • Next by Date: Autopool question
  • Previous by thread: Re: Retained items and autorelease pool
  • Next by thread: Autopool question
  • Index(es):
    • Date
    • Thread