Selectable NSTextFieldCell and NSTextField break attributed strings when selected

2008-06-10 Thread Dalzhim Dalzhim
Hello! this is my first time posting on this mailing list so I hope I do not forget to provide any necessary details! I've been searching around for a long while to fix this problem I am having and I have yet to find a solution or an explanation. I have a NSWindow with a few NSTextField instances

NSLineBreakByTruncatingMiddle on Selected Text?

2008-06-19 Thread Dalzhim Dalzhim
Hello! I have a NSMatrix which contains multiple NSTextFieldCells which are being displayed with attributed string that have their ParagraphStyle's line break mode set to NSLineBreakByTruncatingMiddle. These cells aren't editable but they are currently selectable. Reading the documentation, I hav

What does @loader_path refer to when loading ibplugins from a linked-in framework?

2008-09-24 Thread Dalzhim Dalzhim
Greetings, I have followed the Interface Builder Plug-in Programmation Guide in order to make my first ibplugin and there is one problem I haven't been able to solve yet. It is stated that when opening a nib file, interface builder looks at every linked-in framework from the associated xcode proj

Re: What does @loader_path refer to when loading ibplugins from a linked-in framework?

2008-09-25 Thread Dalzhim Dalzhim
Hello Michael, I would have also thought that @loader_path would be the same thing no matter how I load my ibplugin into interface builder and maybe it is in fact the case, although this is the only thing that I haven't successfully investigated that I can think of up to now in order to solve my p

Re: What does @loader_path refer to when loading ibplugins from a linked-in framework?

2008-09-26 Thread Dalzhim Dalzhim
Hello Michael, I have tried many things to get my plugin to load automatically in Interface Builder but I still haven't made it. I tried many things before testing something I assumed would work but I realized that even this wasn't enough. I changed DYLD_FALLBACK_FRAMEWORK_PATH to add the folder

How to draw a Recessed Button Shadow

2008-10-20 Thread Dalzhim Dalzhim
Hello, I am currently trying to subclass NSPopUpButton while keeping compatibility with Mac OS 10.4 in order to add the possibility of choosing the color of the highlight when the mouse is placed over the button, including gradient fills. The problem is that neither NSPopUpButton or NSPopUpButton

Re: Properly supporting 'delete' key presses in NSTableView

2008-10-20 Thread Dalzhim Dalzhim
This following episode of Late Night Cocoa gives a solution to this precise problem of implementing the delete functionality on TableViews and OutlineViews without having to subclass it. http://www.mac-developer-network.com/podcasts/latenightcocoa/episode9/index.html Hope it helps :) -Dalzhim

Re: Properly supporting 'delete' key presses in NSTableView

2008-10-21 Thread Dalzhim Dalzhim
responder. And there you go, it has been inserted in the linked list. -Dalzhim 2008/10/20 Corbin Dunn <[EMAIL PROTECTED]> > > On Oct 20, 2008, at 2:49 PM, Dalzhim Dalzhim wrote: > > This following episode of Late Night Cocoa gives a solution to this precise > problem of impl

Re: How to draw a Recessed Button Shadow

2008-10-21 Thread Dalzhim Dalzhim
t; > > On 21/10/2008, at 4:34 AM, Dalzhim Dalzhim wrote: > > I am currently trying to subclass NSPopUpButton while keeping >> compatibility >> with Mac OS 10.4 in order to add the possibility of choosing the color of >> the highlight when the mouse is placed over th

Re: Properly supporting 'delete' key presses in NSTableView

2008-10-21 Thread Dalzhim Dalzhim
Well you can easily create a NSTableView category in which you handle the integration of a NSResponder which handles the delete key into the responder chain. This way you won't have to fix this in every single subclass of NSTableView that might appear in the future, wherever it comes from (system c

Re: How to draw a Recessed Button Shadow

2008-10-27 Thread Dalzhim Dalzhim
f a Recessed NSPopUpButton the result remains the same. I can draw any background I wish but I cannot seem to draw the bezel border. regards -Dalzhim 2008/10/21 Kyle Sluder <[EMAIL PROTECTED]<[EMAIL PROTECTED]> > > On Tue, Oct 21, 2008 at 9:55 AM, Dalzhim Dalzhim > <[EM

Subclassing breaks bindings?

2009-05-13 Thread Dalzhim Dalzhim
Hi, I have stumbled over this problem and I can't figure it out. When I subclass NSPopUpButton in order to make a custom appearance for the control, I cannot seem to get the bindings working. I have stripped my problem from any additionnal complexity until I was left with this: @interface MySubc

Re: Subclassing breaks bindings?

2009-05-13 Thread Dalzhim Dalzhim
Thanks Alexander, you made me realize my NSCell subclass was already instantiated as a NSPopUpButtonCell when I dragged the NSPopUpButton into my nib in Interface Builder. I have changed the NSCell subclass for my own and now I can get both the binding and the custom appearance to work in my simpli