One Quickie


Posting notifications. (Notifications->General)
In the header file:

extern NSString *BWStitchGroup_VisualAttributeChangeNotification;

In the .m file:

NSString *BWStitchGroup_VisualAttributeChangeNotification
    = @"BWStitchGroup Visual Attribute Change Notification";

...

NSNotificationCenter *center;
center = [NSNotificationCenter defaultCenter];

[center postNotificationName: 
            BWStitchGroup_VisualAttributeChangeNotification
        object: self];
If you want to pass a userinfo dictionary, you can use a variant method:
    NSDictionary *userInfo = ...;
    [center postNotificationName: BWStitchGroup_VisualAttributeChangeNotification
            object: self
            userInfo: userInfo];



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

webmonster@borkware.com