Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - [NSApp run] and Notification Centers
[NSApp run] and Notification Centers
 
   NeoOffice Forum Index -> NeoOffice/C Development
View previous topic :: View next topic  
Author Message
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Mon Feb 23, 2004 1:54 pm    Post subject: [NSApp run] and Notification Centers

I'm at work and doing some Cocoa hacking and ran into another interesting reason that it's a Good Thing (TM) to move Cocoa hacks to [NSApp run]...

When using the event pull loop model like Neo used to, the automatic handling of the Windows menu in the handle given by [NSApp setWindowsMenu] is broken. Windows are added in, but they are never successfully removed. After a little research, it appears that the problem lies with the default notification center. NSWindowWillCloseNotifications never seem to get sent to observers registered on the default notification center. This makes it seem like dispatch of posted notifications in the default notification queue are handled by more voodoo within [NSApp run]. It also seems the standard Window menu processing handles removal of windows through these notifications.

Shouldn't affect the new event handling, but I figured I'd make a note for posterity and other Cocoa hackers.

ed
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice/C Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.