One Quickie


Receiving notifications (Notifications->General)
NSNotificationCenter *center;
center = [NSNotificationCenter defaultCenter];

[center addObserver: self
        selector: @selector(groupVisualChange:)
        name: BWStitchGroup_VisualAttributeChangeNotification
        object: group];
Where the selector looks like this:
- (void) groupVisualChange: (NSNotification *) notification
{
    // do stuff with the notification
} // groupVisualChange



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com