RE : An OutlineView with Finder Editing Behavior
RE : An OutlineView with Finder Editing Behavior
- Subject: RE : An OutlineView with Finder Editing Behavior
- From: email@hidden
- Date: Thu, 3 Nov 2005 14:06:26 +0100
"> As I've said, I'm not of much help at all."
Yes you are helpfull for me ! And you're the only one who try to help !
So I thank you for the time you spend ! (sorry for my english...).
You can trust me, I will bore you again and again since it works :-)
I'll try to mess around _NSKeyboardFocusClipView and perhaps NSLayoutManager
and I'll keep you update of results.
I've seen that Apple's Sketch sample work with TextArea which have about the
behaviour I'm looking for... But it's very customized so....
Regards !
Guillaume
> -----Message d'origine-----
> De : Dragan Milic [mailto:email@hidden]
> Envoyé : jeudi 3 novembre 2005 00:31
> À : Guillaume Gandreau
> Cc : Cocoa-dev Mailing List
> Objet : Re: An OutlineView with Finder Editing Behavior
>
>
> Hi there,
>
> sorry for dalayed answer, I've been too busy and absent at the same
> time. However, my answer won't be of much help. I told you that
> "should work theoretically", but I've never tried. About strange
> behaviour: it probably has something to do with the fact that while
> you're editing a cell, a textView (the one that posts a
> notification)
> is made subview of _NSKeyboardFocusClipView instance object. Now,
> it's name beginning with underscore clearly shows you that it's
> private to the framework and that you shouldn't mess around with it,
> since your code may brake with new framework release.
>
> As far as creating your own textView, I guess it won't help either,
> and then you must override -editColumn:row:withEvent:select: and
> inside that method send -
> selectWithFrame:inView:editor:delegate:start:length: message to the
> cell you're editing. In order to do so, you must access the cell
> directly. Don't forget that NSTableView/NSOutlineView allows you to
> access only rows and columns. There is a way to access cells
> directly
> though, but it is also very dirty and undocumented, so you'll be
> probably better off doing it, since it would probably result in the
> same behaviour you're already experiencing. You may try messing
> around with above mentioned _NSKeyboardFocusClipView object and see
> what results that gives.
>
> As I've said, I'm not of much help at all.
>
> Regards,
> Milke
>
> On 29.10.2005. at 22:10, Guillaume Gandreau wrote:
>
> > Ok thanks.
> >
> > your tip on LineBreak works very nice ! thanks !
> >
> > For text field, I understand what you mean and subclassed
> > TextDidChange (I already had an outlineview subclass).
> > I have tried that but it sounds strange.
> >
> > You're right, in aNotification under TextDidChange, the object is
> > an NSTextView.
> > But I can't make it resizing !
> > I've tried with SetConstrainedFrameSize or SetNeedsDisplayInRect...
> > But no success. The field stay as it is and text inside had a
> > strange behavior ( scroll left sometimes...).
> >
> > Have I to create my own textview in the method you told ? ( - (void)
> > editColumn:(int)columnIndex row:(int)rowIndex withEvent:(NSEvent *)
> > theEvent select:(BOOL)flag)
> >
> > Would NSLayoutManager or TextContainers or other friends be
> helpfull ?
> > I don't understand very well usage of theses "Text System archi"
> > objects...
> >
> > Thanks !
> > Guillaume
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden