Re: Creating a styles menu like the one in the ruler accessory view of NSLayoutManager...

2008-07-28 Thread Keith Blount
Hmm, Looking into this some more, it seems that the user's favourite styles can be accessed like this: NSDictionary *favStyles = [[NSUserDefaults standardUserDefaults] objectForKey:@"NSFavoriteStyles"]; Presumably this is what is used to generate the pop-up menu in NSLayoutManager's ruler acc

Creating a styles menu like the one in the ruler accessory view of NSLayoutManager...

2008-07-27 Thread Keith Blount
Hi, I'm fairly sure that this isn't possible without hooking into private methods of NSLayoutManager, but it's worth asking on the off-chance... In a standard rich text NSTextView, the ruler view has an accessory view provided by NSLayoutManager. This accessory view has several handy controls in