Re: NSOutlineView isn't restoring persistent state for expanded/collapsed

2017-03-09 Thread Quincey Morris
On Mar 9, 2017, at 09:59 , Steve Mills mailto:sjmi...@mac.com>> wrote: > > When and how should this be happening? FWIW, when I tried to use this persistent state facility (quite a few years ago now), I decided that it was working as advertised, but that the intended behavior was so weird that i

Re: NSOutlineView woes

2016-03-22 Thread Graham Cox
> On 21 Mar 2016, at 5:02 PM, Quincey Morris > wrote: > > On Mar 20, 2016, at 20:20 , Graham Cox wrote: >> >> This is driving me insane! > > a. Can you produce a test project that demonstrates the behavior? (Preferably > not via drag-and-drop, since that’s so much harder to debug.) > > b.

Re: NSOutlineView woes

2016-03-20 Thread Quincey Morris
On Mar 20, 2016, at 20:20 , Graham Cox wrote: > > This is driving me insane! a. Can you produce a test project that demonstrates the behavior? (Preferably not via drag-and-drop, since that’s so much harder to debug.) b. It’s not the actual problem, but I wonder why you construct the needed pa

Re: NSOutlineView - separator lines

2015-03-26 Thread Roland King
> On 27 Mar 2015, at 14:34, Alex Kac wrote: > > I'm trying to get rid of NSOutlineView horizontal separator lines. > I've tried the following with no luck. > > self.outlineView.gridStyleMask = NSTableViewGridNone; > self.outlineView.gridColor = [NSColor clearColor]; > self.outlineView.intercell

Re: NSOutlineView click and bug

2015-01-07 Thread Graham Cox
> On 7 Jan 2015, at 8:01 pm, Leonardo wrote: > > The zoom occurs so slowly On 10.10? This is a bug in the OS. They changed it so that it would interpolate pinch events to create a "smooth animation" of the zoom, but it doesn't work. The events arrive at 90 per second so the graphics can nev

Re: NSOutlineView click and bug

2015-01-07 Thread Corbin Dunn
Hi Leornardo, Please log this as a bug. You are running Mac OS 10.10, right? corbin > On Jan 7, 2015, at 1:01 AM, Leonardo wrote: > > Hi, I'm struggling with a singular trouble. > In my window I have put an NSOutlineView and a NSScrollView containing a > NSClipView containing an NSView. > > I

Re: NSOutlineView not lazy when expanding items :(

2014-09-19 Thread Jerry Krinock
On 2014 Sep 18, at 12:51, Corbin Dunn wrote: > Have you logged a bug on this issue? On Sept 17, I filed a bug 18365579, on the slow behavior in Safari. Hmmm, maybe I should file a separate bug on the underlying AppKit behavior. With two teams getting it in their in-box, it has a better chanc

Re: NSOutlineView not lazy when expanding items :(

2014-09-18 Thread Corbin Dunn
> On Sep 16, 2014, at 4:48 PM, Jerry Krinock wrote: > > > On 2014 Sep 16, at 15:23, Kyle Sluder wrote: > >> I'd try wrapping things in an NSAnimationContext with >> allowsImplicitAnimation=NO. Though I'm not sure where you would have the >> opportunity to wrap the built-in expand behavior.

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Raglan T. Tiger
On Sep 16, 2014, at 5:50 PM, Alex Zavatone wrote: > All I want is to turn off that distracting NSOutline expand/collapse > animation all the time, everywhere. So useless and certainly distracting. > Certainly doesn't make my UI any faster or enhance my user experience. > > If anyone knows how

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Alex Kac
Just wait - next year we’ll have a “Modern AppKit” rewritten for Swift and to be more like UIKit. I keep hoping. > On Sep 16, 2014, at 5:48 PM, Jerry Krinock wrote: > > Weird that here we are with the Apple Watch and Swift, and old NSOutlineView > still doesn’t work as it should. Alex Kac - P

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Alex Zavatone
All I want is to turn off that distracting NSOutline expand/collapse animation all the time, everywhere. So useless and certainly distracting. Certainly doesn't make my UI any faster or enhance my user experience. If anyone knows how, I'll gladly mail them 50 bucks. Is there an NSUserDefaults

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Jerry Krinock
On 2014 Sep 16, at 15:23, Kyle Sluder wrote: > I'd try wrapping things in an NSAnimationContext with > allowsImplicitAnimation=NO. Though I'm not sure where you would have the > opportunity to wrap the built-in expand behavior. Yes, I’ve never understood “graphics contexts” and its new friend

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Kyle Sluder
On Tue, Sep 16, 2014, at 05:04 PM, Jerry Krinock wrote: > > > On 2014 Sep 16, at 10:29, Jens Alfke wrote: > > > > Maybe it's the animation that ends up dereferencing all the rows? I forget > > whether there's a way to disable the animations on an NSOutlineView … > > I can’t find any such contr

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Jerry Krinock
> On 2014 Sep 16, at 10:29, Jens Alfke wrote: > > Maybe it's the animation that ends up dereferencing all the rows? I forget > whether there's a way to disable the animations on an NSOutlineView … I can’t find any such control, Jens. * * * Apparently, *someone* inside Apple knows how to make

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Jens Alfke
> On Sep 16, 2014, at 10:23 AM, Jerry Krinock wrote: > > Apparently it’s the *expand* operation which is not smart enough to realize > the small number of items that can be displayed. (So I guess you would not > see this behavior in a table view.) Maybe there is a technical reason for > thi

Re: NSOutlineView not lazy when expanding items :(

2014-09-16 Thread Jerry Krinock
> On 2014 Sep 16, at 06:13, SevenBits wrote: > > Could you perhaps upload the source? I'd like to take a look at this, as I am > trying to do something like this as well. Here you go… https://github.com/jerrykrinock/NSOutlineViewLazinessDemo Unfortunately, it was easy to reproduce the proble

Re: NSOutlineView

2014-09-10 Thread Shane Stanley
On 10 Sep 2014, at 12:49 pm, Shane Stanley wrote: > FWIW, and this is unrelated to your problem, I'm not sure you should delete > the empty custom views, but rather drag the outline view and text view/scroll > view into them. > > At least, I did what you outlined on a project some time ago. Wh

Re: NSOutlineView

2014-09-09 Thread Shane Stanley
On 10 Sep 2014, at 10:45 am, Charles Jenkins wrote: > Then I deleted the left side’s empty custom view object and replaced it with > a Source View. I deleted the right side’s empty custom view object and > replaced it with one of the text view objects. FWIW, and this is unrelated to your probl

Re: NSOutlineView

2014-09-09 Thread Quincey Morris
On Sep 9, 2014, at 17:45 , Charles Jenkins wrote: > My question is: assuming that my Document class is indeed acting as the > outline view’s delegate, which of these graphical objects is supposed to be > the one calling outlineView:objectForTableColumn:byItem:? That’s a data source method, not

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Also I have a fundamental question about the objects I get when I drag a Source View onto a window. I built my UI by dragging a vertical splitter onto the empty window. Then I deleted the left side’s empty custom view object and replaced it with a Source View. I deleted the right side’s empty cu

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Quincey, Thanks for the reply. At the time of my original posting I had verified several times that all the protocol functions got called and were returning the values I expected them to return. The objectValueForTableColumn one was returning a String, the title I hoped would appear in the o

Re: NSOutlineView

2014-09-09 Thread Quincey Morris
On Sep 9, 2014, at 04:16 , Charles Jenkins wrote: > Actually, if there is a space between the underscore and the name, Xcode > presents a warning saying it’s extraneous. I cut and pasted the original > prototypes from the documentation in order to avoid typos, and Xcode > immediately displayed

Re: NSOutlineView

2014-09-09 Thread Roland King
> On 9 Sep 2014, at 7:16 pm, Charles Jenkins wrote: > > Quincey, > > > > Move my breakpoint up to the function declaration to see if it’s really being > called > Reinsert the space after the underscore and ignore Xcode’s warnings > Delete the underscore altogether > > You don’t want a spa

Re: NSOutlineView

2014-09-09 Thread Charles Jenkins
Quincey, Actually, if there is a space between the underscore and the name, Xcode presents a warning saying it’s extraneous. I cut and pasted the original prototypes from the documentation in order to avoid typos, and Xcode immediately displayed warning messages. Removing the space made Xcode h

Re: NSOutlineView

2014-09-08 Thread Ken Thomases
Hi, On Sep 8, 2014, at 6:00 PM, Charles Jenkins wrote: > I changed the relevant method to this: > > func outlineView( >_outlineView: NSOutlineView!, >objectValueForTableColumn tableColumn: NSTableColumn!, >byItem item: AnyObject! >) -> AnyObject! > { >let node = getDocumen

Re: NSOutlineView

2014-09-08 Thread Quincey Morris
On Sep 8, 2014, at 16:00 , Charles Jenkins wrote: > I changed the relevant method to this: > > func outlineView( >_outlineView: NSOutlineView!, >objectValueForTableColumn tableColumn: NSTableColumn!, >byItem item: AnyObject! >) -> AnyObject! > { >let node = getDocumentNodeF

Re: NSOutlineView

2014-09-08 Thread Charles Jenkins
Ken, Thanks for trying to help me out. I tried to follow your advice, but I must not have completely understood it. I changed the relevant method to this: func outlineView( _outlineView: NSOutlineView!, objectValueForTableColumn tableColumn: NSTableColumn!, byItem item: AnyObject!

Re: NSOutlineView

2014-09-06 Thread Ken Thomases
On Sep 6, 2014, at 11:58 AM, Charles Jenkins wrote: > I’m returning the correct string that should appear at every node of the > tree, but it’s not being used. Each node in the tree is a text view cell. If > I leave IB’s default title of “Text View Cell,” that’s what appears on every > node of

Re: NSOutlineView floating group row question

2014-06-14 Thread Lee Ann Rucker
uot; Sent: Saturday, June 14, 2014 2:17:30 PM Subject: Re: NSOutlineView floating group row question On Jun 14, 2014, at 5:02 PM, Lee Ann Rucker wrote: > Actually, the "default" color you get from IB may not be the "proper" color: > rdar://16040037 > > Vie

Re: NSOutlineView floating group row question

2014-06-14 Thread Bill Cheeseman
On Jun 14, 2014, at 5:02 PM, Lee Ann Rucker wrote: > Actually, the "default" color you get from IB may not be the "proper" color: > rdar://16040037 > > View-based SourceList header cell default text color should not be a custom > > It's 49% gray, instead of a named system color. One effect of

Re: NSOutlineView floating group row question

2014-06-14 Thread Lee Ann Rucker
uot;Bill Cheeseman" To: "Cocoa-Dev Cocoa-Dev Mail" Sent: Saturday, June 14, 2014 12:07:24 PM Subject: Re: NSOutlineView floating group row question On Jun 14, 2014, at 2:52 PM, Kyle Sluder wrote: > Do you override -viewWillDraw anywhere? That is the method NSTableView uses

Re: NSOutlineView floating group row question

2014-06-14 Thread Bill Cheeseman
On Jun 14, 2014, at 3:28 PM, Quincey Morris wrote: > It might be simplest to try deleting your source outline view, and adding a > normal one, then reconfiguring as a source list manually. Actually, I've been through every single setting in the Source List library object in the nib file a d

Re: NSOutlineView floating group row question

2014-06-14 Thread Ken Thomases
On Jun 14, 2014, at 1:03 PM, Bill Cheeseman wrote: > I have a view-based NSOutlineView with the Floats Group Rows setting turned > on in Interface Builder. The outline view is the one supplied by the Source > List object in the Xcode 5.1.1 Interface Builder library. It has Highlight > set to th

Re: NSOutlineView floating group row question

2014-06-14 Thread Quincey Morris
On Jun 14, 2014, at 11:03 , Bill Cheeseman wrote: > I must be overlooking something in those examples. I have a vague recollection of once trying to use the IB source list item and running into something that seemed oddly configured. It might be simplest to try deleting your source outline vie

Re: NSOutlineView floating group row question

2014-06-14 Thread Bill Cheeseman
On Jun 14, 2014, at 2:52 PM, Kyle Sluder wrote: > Do you override -viewWillDraw anywhere? That is the method NSTableView uses > to push down style attributes to its row views and their cells, so don’t > forget to call super. > > Also, what color have you assigned to your text fields? If it’s

Re: NSOutlineView floating group row question

2014-06-14 Thread Kyle Sluder
On Jun 14, 2014, at 11:03 AM, Bill Cheeseman wrote: > > Can anybody explain the trick to me? I must be overlooking something in those > examples. Do you override -viewWillDraw anywhere? That is the method NSTableView uses to push down style attributes to its row views and their cells, so don’t

Re: NSOutlineView: what does this even mean?

2014-05-22 Thread Graham Cox
On 23 May 2014, at 1:09 pm, Kyle Sluder wrote: > Did you remember to set your table view to View Based mode first? I just > successfully dropped a Custom View _below_ the existing text cell view > in a table view in Xcode 5.1.1. Yep, it's set to view-based. Strange, I just can't drop a custom

Re: NSOutlineView: what does this even mean?

2014-05-22 Thread Kyle Sluder
On Thu, May 22, 2014, at 07:00 PM, Graham Cox wrote: > I still have a problem doing this though. In the video, a custom table > row view is shown as a subview of the table, and sure enough, the > identifier and class can be set there. But when I try it, there is no > such view available, neither al

Re: NSOutlineView dragging weirdness [SOLVED]

2014-05-22 Thread Graham Cox
Thanks Ken, though it turned out to be a stupid error on my part (not unexpectedly!). My custom cell view declared a property I called 'layer' which returns the associated model object. Of course this conflicts with NSView's 'layer' property which returns any underlying Core Animation layer, so

Re: NSOutlineView: what does this even mean?

2014-05-22 Thread Graham Cox
On 22 May 2014, at 2:20 pm, Kyle Sluder wrote: > On May 22, 2014, at 12:15 AM, Graham Cox wrote: >> >> So I want to use a custom subclass of NSTableRowView so I can use an >> in-house UI highlighting style. It's far from obvious how to do this, even >> though other documentation states that

Re: NSOutlineView dragging weirdness

2014-05-22 Thread Ken Thomases
On May 21, 2014, at 10:10 PM, Graham Cox wrote: > I'm using NSOutlineView with view-based rows. I've set it up to allow drag > and drop of a row. When the drag is initiated, it throws an exception with > the following stack trace: > > #00x7fff8b6d4e4a in objc_exception_throw () > #1

Re: NSOutlineView: what does this even mean?

2014-05-21 Thread Kyle Sluder
On May 22, 2014, at 12:15 AM, Graham Cox wrote: > > So I want to use a custom subclass of NSTableRowView so I can use an in-house > UI highlighting style. It's far from obvious how to do this, even though > other documentation states that this is the 'correct' approach to customising > the row

Re: NSOutlineView view-based SourceView HeaderCell text is not white when selected

2014-02-11 Thread Lee Ann Rucker
Simpler than that - set the text field back to the standard default of "Text Color", and NSTextFieldCell knows what to do, just like in cell-based. So it's just IB throwing a wrench in the works. On Feb 11, 2014, at 12:44 PM, Lee Ann Rucker wrote: > Poked at it until I got it working: by defaul

Re: NSOutlineView view-based SourceView HeaderCell text is not white when selected

2014-02-11 Thread Lee Ann Rucker
Poked at it until I got it working: by default, IB creates the Source List HeaderCell text field with 49% gray text color. Set it to white and it works as expected - gray when not selected, white when it is. Filed rdar://16040037 - the NSTextFieldCell should work the same whether in view- or ce

Re: NSOutlineView cell size 8 pixels too narrow

2013-10-04 Thread Mike Abdullah
I wonder if this is a side-effect of -[NSOutlineView autoresizesOutlineColumn]. I had to set it to NO for our app. On 2 Oct 2013, at 11:57, Jakob Egger wrote: > I had a similar issue with NSOutlineView in 10.8. I had an outline view that > could be hidden by the user, and every time it was sho

Re: NSOutlineView cell size 8 pixels too narrow

2013-10-04 Thread Jakob Egger
I had a similar issue with NSOutlineView in 10.8. I had an outline view that could be hidden by the user, and every time it was shown again, the width of the outline column shrank by a certain amount. It might be a bug in NSOutlineView. Calling -reloadData after the view is shown fixed the issu

Re: NSOutlineView cell size 8 pixels too narrow

2013-10-01 Thread Jerry Krinock
On 2013 Oct 01, at 15:38, Trygve Inda wrote: > No matter how I configure the nib, the cell is always 8 pixels too > narrow until I resize the window which causes it to work correctly after > that. I remember that drove me crazy when I first used an outline view some years ago. A couple things

Re: NSOutlineView (Cell based) loses Text

2013-06-24 Thread Quincey Morris
On Jun 24, 2013, at 14:41 , Robert Fiedler wrote: > Does anybody have an idea what could be the reason for that behavior or in > what direction I should dig? I believe I've seen similar behavior caused by malfunctioning auto-layout constraints on the text and image subviews. Make sure you have

Re: NSOutlineView doesn't collapse item

2013-06-18 Thread Peng Gu
I've figured it out. Seems the item is collapsable only when the delegate method *- (BOOL)outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(id)item* returns YES for that item. Otherwise, you can only expand the item. Thanks, On Wed, Jun 19, 2013 at 11:20 AM, Jens Alfke wr

Re: NSOutlineView doesn't collapse item

2013-06-18 Thread Jens Alfke
On Jun 18, 2013, at 7:16 PM, Peng Gu wrote: >[[self.outlineView animator] collapseItem:item]; I’ve never tried using the animator proxy to do this; I don’t think it’s necessary (the expand/collapse will be animated anyway.) Have you tried calling the view directly? —Jens smime.p7s

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On May 2, 2013, at 3:44 PM, Gordon Apple wrote: > We did get a customRowView to work in the TableViewPlayground sample. The > popover showed a simple color image view with some text that displayed the > row number. As you mouse over the outline, any previous popover closes and a > new one a

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On May 2, 2013, at 3:15 PM, Quincey Morris wrote: > On May 2, 2013, at 14:52 , Corbin Dunn wrote: > >> On Apr 17, 2013, at 2:09 PM, Quincey Morris >> wrote: >> >>> On Apr 17, 2013, at 10:50 , Gordon Apple wrote: >>> We are converting tables and outlines to view-based. So far, so go

Re: NSOutlineView Travails

2013-05-02 Thread Gordon Apple
We did get a customRowView to work in the TableViewPlayground sample. The popover showed a simple color image view with some text that displayed the row number. As you mouse over the outline, any previous popover closes and a new one appears at the edge of the outline/table view row. I filed a r

Re: NSOutlineView Travails

2013-05-02 Thread Quincey Morris
On May 2, 2013, at 14:52 , Corbin Dunn wrote: > On Apr 17, 2013, at 2:09 PM, Quincey Morris > wrote: > >> On Apr 17, 2013, at 10:50 , Gordon Apple wrote: >> >>> We are converting tables and outlines to view-based. So far, so good, on >>> tables. But NSOutlineView has been a pain. First of

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On Apr 21, 2013, at 11:51 AM, Gordon Apple wrote: > Our view-based NSOutlineView still has a few annomalies, but mostly works. > Now, we are attempting to install a hoverView in our outline column to > launch a popover (display only) when mousing over a row. This works just > fine with NSTableV

Re: NSOutlineView Travails

2013-05-02 Thread Corbin Dunn
On Apr 17, 2013, at 2:09 PM, Quincey Morris wrote: > On Apr 17, 2013, at 10:50 , Gordon Apple wrote: > >> We are converting tables and outlines to view-based. So far, so good, on >> tables. But NSOutlineView has been a pain. First of all, there is no >> documentation on this, zero, zip, na

Re: NSOutlineView Travails

2013-04-21 Thread Gordon Apple
Our view-based NSOutlineView still has a few annomalies, but mostly works. Now, we are attempting to install a hoverView in our outline column to launch a popover (display only) when mousing over a row. This works just fine with NSTableViews, but so far does not work at all with NSOutlineView. We

Re: NSOutlineView Travails

2013-04-17 Thread Quincey Morris
On Apr 17, 2013, at 18:08 , Gordon Apple wrote: > Our outlineView is not stable and it sometimes edits the wrong row. FWIW, the several times I saw instability and other odd behavior, it turned out I was doing something to the outline view on a non-main thread. The odd behavior didn't necessa

Re: NSOutlineView Travails

2013-04-17 Thread Gordon Apple
By now, I¹m sure you¹ve seen my second posting. That at least got things showing up in (mostly) the right place. We always had a mixture of bindings and data source, mainly because line numbers were hard to do with bindings. With view=based tables and a little subclassing, it¹s not so hard. For

Re: NSOutlineView Travails

2013-04-17 Thread Gordon Apple
We had assumed that outlineView:objectValueForTableColumn:item was not called if the table was bound to a NSTreeController. Wrong assumption. If we returned the correct value, or just eliminated this method, it mostly works correctly. However, there a few anomalies. The outline text indents prop

Re: NSOutlineView Travails

2013-04-17 Thread Quincey Morris
On Apr 17, 2013, at 10:50 , Gordon Apple wrote: > We are converting tables and outlines to view-based. So far, so good, on > tables. But NSOutlineView has been a pain. First of all, there is no > documentation on this, zero, zip, nada, zilch, in the NSOutlineView > Reference. You have to rely

Re: NSOutlineView cell editing behavior

2013-02-08 Thread Quincey Morris
On Feb 7, 2013, at 23:15 , Kyle Sluder wrote: > Subclass NSOutlineView and override -textDidEndEditing: to do the right > thing? (Or whatever the delegate method is that gives you the "movement > reason.") Weirdly, it doesn't get to this delegate method -- nor does *my* delegate ever get mess

Re: NSOutlineView cell editing behavior

2013-02-07 Thread Kyle Sluder
On Feb 7, 2013, at 9:41 PM, Quincey Morris wrote: > Anyway, this gave me a simple test project, now bug-reported as #13178419. > Unfortunately, I don't see a workaround. Subclass NSOutlineView and override -textDidEndEditing: to do the right thing? (Or whatever the delegate method is that giv

Re: NSOutlineView cell editing behavior

2013-02-07 Thread Quincey Morris
On Feb 7, 2013, at 16:00 , Quincey Morris wrote: > Everything works, except for one thing. If I click on a text field to begin > editing, type a few characters, then press Esc, then editing ends, but the > text doesn't revert to what it was before editing began. Well, it appears to a NSOutlin

Re: NSOutlineView group item - suppress ugly show/hide "button" ?

2012-08-10 Thread Quincey Morris
On Aug 10, 2012, at 22:18 , Graham Cox wrote: > In my outline view I return NO for a certain row from the delegate method > [outlineView:shouldCollapseItem:], which is also set to be a 'group' item. > This does prevent the group item being collapsed correctly, but it still > shows that horribl

Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)

2012-02-15 Thread Kyle Sluder
On Feb 15, 2012, at 1:18 AM, Uli Kusterer wrote: > Any chance of you posting this radar on http://openradar.me ? I'd love to > learn more about this issue. That's really pretty much all there is to it. I suppose it might be worth posting so others know about it, but the entire bug is that view

Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)

2012-02-15 Thread Uli Kusterer
On 14.02.2012, at 23:55, Kyle Sluder wrote: > On Tue, Feb 14, 2012 at 12:34 PM, Mikkel Eide Eriksen > wrote: >> Hi, >> >> I was going to implement a source list, but it's causing XCode and the >> Simulator to freak out. I did the following in my existing project (and then >> in a fresh projec

Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)

2012-02-14 Thread Mikkel Eide Eriksen
On 14/02/2012, at 23.55, Kyle Sluder wrote: > View-based table views and outline views crash the IB simulator. This > is a known issue. > > r. 9442221 Thanks for the into. Mikkel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: -[NSOutlineView ibIsInDesignMode]: unrecognized selector (???)

2012-02-14 Thread Kyle Sluder
On Tue, Feb 14, 2012 at 12:34 PM, Mikkel Eide Eriksen wrote: > Hi, > > I was going to implement a source list, but it's causing XCode and the > Simulator to freak out. I did the following in my existing project (and then > in a fresh project to make sure): > > 1. Create window nib > 2. Add a sou

Re: NSOutlineView doesn't call outlineView:shouldSelectItem: after selectRowIndexes:byExtendingSelection:

2011-11-15 Thread Motti Shneor
Thanks Kyle. For some reason I missed the superclass (NSTableView) docs when trying to solve my NSOutlineView selection issues. However --- I remember (our previous implementation) that when you use an NSTreeController (Or NSArrayController in the case of NSTableView) to control the NSOutLineVi

Re: NSOutlineView doesn't call outlineView:shouldSelectItem: after selectRowIndexes:byExtendingSelection:

2011-11-14 Thread Kyle Sluder
On Mon, Nov 14, 2011 at 6:18 AM, Motti Shneor wrote: > However, if we need to PROGRAMMATICALLY set the selection, using > selectRowIndexes:byExtendingSelection: for example,   > outlineView:shouldSelectItem: is never called. >From "Selecting and Deselecting Rows Programmatically" in the Table Vi

Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children

2011-10-29 Thread Koen van der Drift
Thanks Kyle, I'll try to apply that. In the meantime, I also found the AbstractView sample code which does something similar. I'll see which one fits my code better. - Koen. On Oct 29, 2011, at 5:34 PM, Kyle Sluder wrote: > On Sat, Oct 29, 2011 at 1:18 PM, Koen van der Drift > wrote: >> I'm

Re: NSOutlineView drag and drop: how to prevent parent being dropped on one of its children

2011-10-29 Thread Kyle Sluder
On Sat, Oct 29, 2011 at 1:18 PM, Koen van der Drift wrote: > I'm setting up drag and drop for my NSOutlineView and I want to prevent > parents being dropped on one of their children. The parent and children are > all of the Group entity. I understand I need to do this in the > outlineView:valid

Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-03 Thread Quincey Morris
On Oct 3, 2011, at 01:36 , Gilles Celli wrote: > As you suggested I tried the different options (putting a button cell in IB) > and also returning with a non-nil cell for the NSOutlineView…but I'm not > quite sure what you mean: Do I need to remove the "buttonColumn" and have > only one column

Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-03 Thread Gilles Celli
Quincey, thanks for the quick reply! As you suggested I tried the different options (putting a button cell in IB) and also returning with a non-nil cell for the NSOutlineView…but I'm not quite sure what you mean: Do I need to remove the "buttonColumn" and have only one column ? And then generat

Re: NSOutlineView - display NSButtonCell only for leaf node with outlineView:dataCellForTableColumn:item: method

2011-10-02 Thread Quincey Morris
On Oct 2, 2011, at 13:14 , Gilles Celli wrote: > Now I want to have a NSButtonCell for all the DataTypeNames (leaf node of the > OvItem items class)…I've setup an NSOutlineView with 2 columns: first column > named > "buttonColumn" and a second one to display the Items… > > I've tried to generat

Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-10-02 Thread Gilles Celli
I finally found the bug which caused my NSOutlineView to display the content only if the user was scrolling inside of it, but never showed up correctly at program launch: The problem was that I've put the method expandItem:exandChildren inside NSOutlineView delegate method outlineView:willDisp

Re: NSOutlineView and -reloadDataForRowIndexes:columnIndexes:

2011-09-09 Thread Corbin Dunn
Yes; for a cell based tableview all it does is invalidate the row/column pairs. For view based, it drops the view and queries it again. corbin On Sep 8, 2011, at 12:12 PM, Sebastien Boisvert wrote: > Does -reloadDataForRowIndexes:columnIndexes: work on NSOutlineView? I'm > trying to use this t

Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-09-02 Thread Gilles Celli
Michael & Graham: thanks for the reply I agree that my Item class and its structure for the outline view has to be reworked...I'll let you know since I'm on vacancy for one week… -Gilles On 2 sept. 2011, at 14:35, Michael Babin wrote: > On Sep 2, 2011, at 7:15 AM, Gilles Celli wrote: > >> I'

Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-09-02 Thread Graham Cox
On 02/09/2011, at 10:48 PM, Gilles Celli wrote: > Yes forgot to say that I've a data source for the outline view…. > > My OvItem.h class looks like this: Yes, but how and when does that structure get established? That's what matters here - obviously the data structure needs to be ready when t

Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-09-02 Thread Gilles Celli
Yes forgot to say that I've a data source for the outline view…. My OvItem.h class looks like this: #import @interface OvItem : NSObject { NSString *title; NSMutableArray *children; BOOL isParent; } @property (nonatomic, readwrite, copy) NSString *title; @property

Re: NSOutlineView - Items only displays when user scrolls in outline view

2011-09-02 Thread Michael Babin
On Sep 2, 2011, at 7:15 AM, Gilles Celli wrote: > I've setup a Document based application with an NSOutlineView which displays > Parent-Item along with its children…with XCode 4 on OS X Lion. > > When launching the application, the outline view shows the Root title…only if > I refresh the outl

Re: NSOutlineView + NSButtonCell weird bug

2011-02-10 Thread Mark Wright
Ah HA! This problem has bugged me for ages and I could never find it. I too worked around it with re-saves or forcing nib recompilation whenever one of them worked. I always blamed some obscure corruption in IB but since I'm stuck on 10.5 I assumed it was just something to live with. I

Re: NSOutlineView + NSButtonCell weird bug

2011-02-09 Thread Graham Cox
OK, I think I found the reason for the problem. I'm using the generally excellent BWToolkit in my app, but it has some issues. One of these is that the version I'm using completely breaks nib decoding by brute-force switching out the standard NSButtonCell class for the unarchiver. That's just n

Re: NSOutlineView syncing demo project

2011-01-24 Thread Markus Spoettl
On Jan 24, 2011, at 12:38 PM, Markus Spoettl wrote: > Am I dreaming this example project up? For the record: It appears so. However, there's a topic in the NSScrollView programming guide that talks in detail about synchronizing two scroll views: http://developer.apple.com/library/mac/#documenta

Re: NSOutlineView and selection

2011-01-12 Thread Corbin Dunn
Hi Kevin, (cc'ing the list, in case others have the same question). On Jan 12, 2011, at 12:55 PM, Kevin Meaney wrote: > Thanks Corbin, > > Will modifying the current selection of the outline view in the delegate > method outlineView:selectionIndexesForProposedSelection cause any problems as >

Re: NSOutlineView and selection

2011-01-12 Thread Corbin Dunn
On Jan 12, 2011, at 10:45 AM, Kevin Meaney wrote: > Hi, > > In my outline view I need to allow multiple selection, but only allow all > selected items to have the same parent. In other words as soon as the user > selects an item with a different parent to the currently selected items even > i

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread Corbin Dunn
Quincey pretty much got it right. Here's what happens: Table needs a cell (to draw, edit, type select, etc). It calls -preparedCellAtColumn:row: -- this is a public funnel point, and can be overridden. Some examples on the dev site do this. preparedCellAtColumn:row does this, in this order (whi

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread jonat...@mugginsoft.com
On 6 Oct 2010, at 11:29, Quincey Morris wrote: > > This all means that anything you choose to configure in #1 may or may not > still be in effect by the time you get to #2, but that's an implementation > detail on which you cannot rely, because there's no API contract that > anything is kept.

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread Quincey Morris
On Oct 6, 2010, at 02:58, jonat...@mugginsoft.com wrote: > What does work is: > > 1. in - outlineView:dataCellForTableColumn:item: construct my popup cell > when required. > 2.in - outlineView:willDisplayCell:forTableColumn:item: select item in popup > cell according to model. > > In step 1 I

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread jonat...@mugginsoft.com
> > I think it is your misunderstanding of what is going on. > > When the user interacts with a cell (editing, or tracking - in this case, > tracking is happening), the cell is copied. This is required, if you think > about it, since you don't want to have any other cells in the table be > r

Re: NSOutlineView multi cell type binding query

2010-10-05 Thread Corbin Dunn
On Oct 5, 2010, at 3:36 PM, jonat...@mugginsoft.com wrote: > > On 5 Oct 2010, at 23:03, Quincey Morris wrote: > >> On Oct 5, 2010, at 03:53, jonat...@mugginsoft.com wrote: >> >>> However it appears that the binding machinery causes the NSPopUpButtonCell >>> selection to be reset after the use

Re: NSOutlineView multi cell type binding query

2010-10-05 Thread Quincey Morris
On Oct 5, 2010, at 15:36, jonat...@mugginsoft.com wrote: > I have a separate NSPopUpButtonCell that I recycle and configure as and when > required. > The issue is that when the NSPopUpButtonCell is selected and the user selects > an item from the popup NSMenu the user's selection is reset. > ie:

Re: NSOutlineView multi cell type binding query

2010-10-05 Thread jonat...@mugginsoft.com
On 5 Oct 2010, at 23:03, Quincey Morris wrote: > On Oct 5, 2010, at 03:53, jonat...@mugginsoft.com wrote: > >> However it appears that the binding machinery causes the NSPopUpButtonCell >> selection to be reset after the user has interacted with the control. >> >> I therefore have to resync th

Re: NSOutlineView multi cell type binding query

2010-10-05 Thread Quincey Morris
On Oct 5, 2010, at 03:53, jonat...@mugginsoft.com wrote: > However it appears that the binding machinery causes the NSPopUpButtonCell > selection to be reset after the user has interacted with the control. > > I therefore have to resync the NSPopUpButtonCell selection to the model in - > outlin

Re: NSOutlineView auto expand threshold

2010-09-17 Thread koko
Word up! Looks like the solution ... Thanks. -koko On Sep 16, 2010, at 6:24 PM, Jerry Krinock wrote: On 2010 Sep 16, at 11:46, k...@highrolls.net wrote: I found a hack in the archives to impose a delay on the auto expand when over a parent node but was wondering if there is a 'preferred'

Re: NSOutlineView auto expand threshold

2010-09-16 Thread Jerry Krinock
On 2010 Sep 16, at 11:46, k...@highrolls.net wrote: > I found a hack in the archives to impose a delay on the auto expand when over > a parent node but was wondering if there is a 'preferred' or 'acceptable' > method of changing the auto expand threshold. If you're looking for a solution to th

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: > what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev mail

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: > what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev mail

Re: NSOutlineView Dazed and Confused for Drag and Drop

2010-09-15 Thread koko
Word up to Nick and Dave ... All my issues were because in writeItems:toPasteboard I wasn't doing anything ... I was just trying to stub in code to get the process. Ergo, upon doing [pboard declareTypes:[NSArray arrayWithObject:@"HTREEITEM"] owner:self]; [pboard setData:[NSData d

  1   2   3   >