Re: Controlling line-breaking in a text view

2008-08-12 Thread Andy Kim
Many thanks to everyone who helped in this thread. I wonder if this is a larger bug in the text system? I was going to suggest just inserting the Unicode character "zero-width no-break space" (U +FEFF) after the slash, but when I tried it (in TextEdit) I got the very phenomenon you describe

Controlling line-breaking in a text view

2008-08-09 Thread Andy Kim
I think it's better than the default behavior but still not ideal. So how can I make it wrap exactly the way I want? - Andy Kim smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: NSStatusItem custom view with menu

2008-07-04 Thread Andy Kim
Another way to do this is to implement the NSMenu delegate methods: - menuWillOpen: - menuDidClose: You would then set the highlighted variable there. I think it'll make the code easier to read. You need to set the menu's delegate for this to work (obviously). - Andy Kim On J

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-07-01 Thread Andy Kim
em is the model object itself. In your case, I'm fairly positive that you do need to return the NSTreeNode object. Instead of fetching the model object, walk the controller's content tree looking for the right representedObject with the UID. - Andy Kim smi

Re: Implementing NSOutlineView autosaveExpandedItems with CoreData

2008-06-30 Thread Andy Kim
[self expandItem:[[self dataSource] outlineView:self itemForPersistentObject:pobj]]; } } You can use those two methods to save the expanded state to the user defaults and then restore later on exactly when you need to. - Andy Kim smime.p7s Description: S/MIME cryptographic sign

Re: trackmouse problems in Leopard

2008-06-28 Thread Andy Kim
might not be exactly what you want, but I'm pretty sure your solution is a good implementation of this method. Andy Kim On Jun 28, 2008, at 6:24 AM, Moray Taylor wrote: Hi, hope someone can help... I have an app that uses a custom NSCell that implements the - (BOOL)trackMouse:(NS

NSCollectionView fade on load

2008-06-09 Thread Andy Kim
n view is comes from an NSArrayController. I've noticed that Ihe IconCollection example project does not fade and have carefully followed every detail of that project, but I'm still getting the fade sometimes. What triggers the fade when the app launches? Andy Kim Potion Factory LLC