Re: How to detect NSTextAttachment deletion

2008-07-14 Thread Todd Ransom
before the actual change, so you can use the range passed in to determine whether an attachment will be deleted, then act on that information in the didChangeText method. hope that helps, Todd Ransom StoryMill & Montage Development Mariner Software On Jul 14, 2008, at 12:37 PM, chaitany

Re: Dynamic Tooltips

2008-07-10 Thread Todd Ransom
with can be found here: http://www.cocoadev.com/index.pl?ToolTip Todd Ransom StoryMill & Montage Development Mariner Software On Jul 10, 2008, at 2:31 PM, [EMAIL PROTECTED] wrote: Hi, I have a slider and while dragging I want to have a tooltip show the current value of the slider and

Custom mouse cursor in NSTextView

2008-06-13 Thread Todd Ransom
only seems to get called if I override resetCursorRects and it does not affect the cursor appearance in the text view either. Has anyone else out there successfully changed the mouse cursor on a text view? What did you need to do? thanks, Todd Ransom Return Self Software http://returnself.com

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
Thanks guys. I decided to just use CFArrayCreateMutable in my accessor instead of creating a subclass and it's working beautifully. Todd Ransom Return Self Software http://returnself.com On Jun 2, 2008, at 1:01 PM, Jens Alfke wrote: On 2 Jun '08, at 9:12 AM, Todd Ransom wrote:

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
Unfortunately I need to target Tiger also. Thanks for the info, though, this will be useful to know in a year or so. ;) Todd Ransom Return Self Software http://returnself.com On Jun 2, 2008, at 12:32 PM, j o a r wrote: On Jun 2, 2008, at 9:12 AM, Todd Ransom wrote: It seems that what I

many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
another solution to this problem? Or is there anything in particular I should watch out for when subclassing NSMutableArray? thanks, Todd Ransom Return Self Software http://returnself.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Saving NSFonts and changedFont: trouble

2008-04-09 Thread Todd Ransom
rride (changeColor:, changeAttributes:) if you want to capture more than just font changes. If you have a separate control for this you should not be messing with these methods at all, just write a method that will save the new font and apply to the text view. Todd Ransom Return Self Software

Re: Typing attributes and the location of the insertion point

2008-03-03 Thread Todd Ransom
I will put together a sample to demonstrate the behavior and may do both. Thanks as always for your help. Todd Ransom Return Self Software http://returnself.com On Mar 3, 2008, at 12:31 PM, Douglas Davidson wrote: On Mar 3, 2008, at 9:25 AM, Todd Ransom wrote: I do ensure that

Re: Typing attributes and the location of the insertion point

2008-03-03 Thread Todd Ransom
. thanks, Todd Ransom Return Self Software http://returnself.com On Mar 3, 2008, at 12:08 PM, Douglas Davidson wrote: On Mar 3, 2008, at 8:24 AM, Todd Ransom wrote: This works well when the user is typing at the end of the text. When the user is typing in the middle of existing text

Typing attributes and the location of the insertion point

2008-03-03 Thread Todd Ransom
style of the typing attributes. Is this a bug? Or is this by design? I have tried using -[NSTextView updateRuler] to force the ruler to update but this has no effect. Is there any way to force the ruler and insertion point to update properly? Todd Ransom Return Self Software http