On Oct 27, 2009, at 4:59 AM, Chunk 1978 wrote:

attributes = [[NSMutableDictionary alloc] init];

[attributes setObject:[NSFont fontWithName:@"Helvetica" size:75] forKey:
NSFontAttributeName];

[attributes setObject:[NSColor redColor] forKey:
NSForegroundColorAttributeName];

[attributes setObject:shadow forKey:NSShadowAttributeName];

You can change this to

attributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
        NSFontAttributeName, [NSFont fontWithName:@"Helvetica" size:75],
        NSForegroundColorAttributeName, NSColor redColor],
        NSShadowAttributeName, shadow,
        nil];

or using my MYUtilities library,

attributes = $dict({[NSFont fontWithName:@"Helvetica" size:75], NSFontAttributeName},
        {[NSColor redColor], NSForegroundColorAttributeName},
        {shadow, NSShadowAttributeName});

—Jens_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to