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
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
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
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
[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
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
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