Re: NSBrowser Frustration

2015-03-07 Thread Frank D. Engel, Jr.
Now I feel stupid. For efficiency, my code was caching the values for the second column, but I never cleared that cache before trying to refresh that column. The browser was refreshing the (now incorrect) cached values - clearing my cache out so that it was rebuilt fixed my issue. Sorry fo

Re: NSBrowser tooltips

2014-05-05 Thread Ken Thomases
On May 5, 2014, at 4:58 PM, Paul Wasmund wrote: > I am using an NSBrowser to display items and my code is based on the > ComplexBrowser sample from Apple. This uses browser features introduced in > 10.6 and does not implement a NSMatrix to display columns. The only support I > see for implement

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Paul Wasmund
None of the suggestions panned out. The setting of the allowsBranchSelection had no effect on being able to edit the first row entry programmatically and neither did the isLeaf value. The other relevant values are: isEditable = 1 indexPath = 1 indexes [13] and those look good to me. Any othe

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Keary Suska
On Apr 4, 2013, at 3:13 PM, Paul Wasmund wrote: > I am trying to use editItemAtIndexPath:withEvent:select: in my program to > programatically start editing the text in my cell. It works for all items > except those in the first column. As an experiment I added code to the Apple > sample Complex

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Gary L. Wade
If the problem is with the index path, you could get selectedRowInColumn:0 and construct your own index path with the returned value. -- Gary L. Wade http://www.garywade.com/ On 4/4/2013 2:13 PM, "Paul Wasmund" wrote: >I am trying to use editItemAtIndexPath:withEvent:select: in my program to >p

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Bill Cheeseman
On Sep 9, 2011, at 4:03 PM, Matt Neuburg wrote: > I do hope you're filing bugs on all of this! m. > > On Tue, 06 Sep 2011 06:30:33 -0400, Bill Cheeseman > said: >> >> The solution is to set the "Titled" checkbox in Interface Builder instead of >> calling -setTitled: in -awakeFromNib. Surely

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Matt Neuburg
I do hope you're filing bugs on all of this! m. On Tue, 06 Sep 2011 06:30:33 -0400, Bill Cheeseman said: > >The solution is to set the "Titled" checkbox in Interface Builder instead of >calling -setTitled: in -awakeFromNib. Surely this is a bug in NSBrowser, and >it must have been around since

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-06 Thread Bill Cheeseman
On Sep 5, 2011, at 8:39 AM, Bill Cheeseman wrote: > Long ago, I found that NSBrowser column titles disappear when the user > manually scrolls the browser horizontally, or clicks a cell that forces the > browser to scroll horizontally to show the children of the new selection in > the next colu

Re: NSBrowser matrix

2011-06-27 Thread Raleigh Ledet
Your instantiating your NSBrowser from a nib file. Try over riding - (id)initWithCoder:(NSCoder *)coder -raleigh On Jun 26, 2011, at 4:18 AM, Ari Black wrote: > On 11-06-26 7:04 AM, Fritz Anderson wrote: >> >> On 25 Jun 2011, at 7:05 PM, Ari Black wrote: >> >>> @implementation SpecialMatrix >

Re: NSBrowser matrix

2011-06-26 Thread Ari Black
On 11-06-26 7:04 AM, Fritz Anderson wrote: On 25 Jun 2011, at 7:05 PM, Ari Black wrote: @implementation SpecialMatrix - (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows numberOfColumns:(NSInteger)numColumns { int x;

Re: NSBrowser matrix

2011-06-26 Thread Fritz Anderson
On 26 Jun 2011, at 6:18 AM, Ari Black wrote: >> Second step: Maybe an NSBrowser doesn't instantiate any matrices until you >> have responded to browser:numberOfRowsInColumn: with a non-zero value? >> >> — F > > That's possible, but I've tested adding items to the columns and > SpecialMatr

Re: NSBrowser matrix

2011-06-26 Thread Fritz Anderson
On 25 Jun 2011, at 7:05 PM, Ari Black wrote: > @implementation SpecialMatrix > > - (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode > prototype:(NSCell *)aCell numberOfRows:(NSInteger)numRows > numberOfColumns:(NSInteger)numColumns { >int x; >x = 0; // I put a breakpoint he

Re: NSBrowser Drag and Drop Issue !!

2011-04-15 Thread Naresh Kongara
I tried by setting break point on objc_exception_throw. Unable to get anything from the stack trace. Following is the stack trace. #0 0x7fff835d70da in objc_exception_throw () #1 0x7fff81060c9b in -[NSBrowser _beginColumnDragging] () #2 0x7fff8105b04f in -[NSBrowserTableView d

Re: NSBrowser Drag and Drop Issue !!

2011-04-15 Thread Corbin Dunn
On Apr 14, 2011, at 5:16 PM, Naresh Kongara wrote: > HI All, > > I implemented drag and drop in NSBrowser, through which I can drag items from > other views or windows of the applications. The drag and drop in NSBrowser is > implemented through its delegate methods. > Everything is going fine

Re: NSBrowser & column resizing

2011-03-06 Thread Scott Ribe
On Mar 6, 2011, at 4:01 PM, Raleigh Ledet wrote: > Why not just a headerViewController on NSBrowser proper? That looks like it might be exactly what I want. I missed it when skimming NSBrowser/Delegate docs. Thanks. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303)

Re: NSBrowser & column resizing

2011-03-06 Thread Raleigh Ledet
Why not just a headerViewController on NSBrowser proper? -raleigh On Mar 2, 2011, at 10:03 AM, Scott Ribe wrote: > I need to implement a custom control, which would look very much like an > NSBrowser with a "header row" above each column which would have 1 or 2 > controls per column. It seems

Re: NSBrowser

2010-11-18 Thread Bruno Causse
yes i found, thank a lot Le 17 nov. 10 à 18:27, Dave DeLong a écrit : NSBrowser is a subclass of NSControl, which happens to have a target and action mechanism. Have you tried hooking up your browser's target and action? Dave On Nov 17, 2010, at 8:52 AM, Bruno Causse wrote: i can navig

Re: NSBrowser

2010-11-17 Thread Dave DeLong
NSBrowser is a subclass of NSControl, which happens to have a target and action mechanism. Have you tried hooking up your browser's target and action? Dave On Nov 17, 2010, at 8:52 AM, Bruno Causse wrote: > i can navigate in a tree through the NSbrowser (mouse or keyboard), > I would like to v

Re: NSBrowser and double click

2010-07-26 Thread Corbin Dunn
On Jul 26, 2010, at 12:32 PM, mark wrote: >> On 25/07/2010, at 9:00 AM, mark wrote: >> >>> A problem which is driving me spastic: >>> I have an NSBrowser that allowes multiple selection. >>> When I double click one of the selected items, all other selected items >>> deselect. >>> I have set the

Re: NSBrowser and double click

2010-07-26 Thread mark
On 25/07/2010, at 9:00 AM, mark wrote: A problem which is driving me spastic: I have an NSBrowser that allowes multiple selection. When I double click one of the selected items, all other selected items deselect. I have set the doubleaction and action methods and correct target. These are

Re: NSBrowser and double click

2010-07-24 Thread Graham Cox
On 25/07/2010, at 9:00 AM, mark wrote: > A problem which is driving me spastic: > I have an NSBrowser that allowes multiple selection. > When I double click one of the selected items, all other selected items > deselect. > I have set the doubleaction and action methods and correct target. These

Re: NSBrowser dragging

2010-05-08 Thread Micha Fuhrmann
Dear Corbin, Thanks for responding, however I must contradict you, vertical drag with ComplexBrower does work under 10.6. It does so because its cell is an NSTextfieldCell which inherits from NSActionCell. "Since NSBrowserCell does not inherit from NSActionCell, it doesn’t hold a target and act

Re: NSBrowser dragging

2010-05-07 Thread Corbin Dunn
On May 7, 2010, at 1:01 AM, Micha Fuhrmann wrote: > Hi everyone, > > I've ran out of ideas, I just don't now what's wrong. > > I have an NSBrowser Object. > > I've set the delegate to another class which implements: > > - (BOOL)browser:(NSBrowser *)browser canDragRowsWithIndexes:(NSIndexSet

Re: NSBrowser dragging

2010-05-07 Thread Jens Alfke
On May 7, 2010, at 1:01 AM, Micha Fuhrmann wrote: > If I click-drag in the browser either right or left, the method is called. > But if I click-drag up or down, it isn't. All that happens is the cells get > selected. I've compared with the Apple example "ComplexBrowser", and i just > cannot se

Re: NSBrowser and tab order

2010-03-19 Thread Corbin Dunn
On Mar 18, 2010, at 9:48 AM, Keary Suska wrote: > On Mar 18, 2010, at 8:40 AM, Corbin Dunn wrote: > >> Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? >> >> The work around is to set it up in awakeFromNib. > > Is there any way to tab into an NSBrowser in 10.4? It

Re: NSBrowser and tab order

2010-03-18 Thread Andrew James
arning experience. :) Cheers, --aj From: Corbin Dunn To: Andrew James Cc: list-cocoa-dev Sent: Thu, March 18, 2010 7:40:06 AM Subject: Re: NSBrowser and tab order Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? The work around is to set it up in awakeFrom

Re: NSBrowser and tab order

2010-03-18 Thread Keary Suska
On Mar 18, 2010, at 8:40 AM, Corbin Dunn wrote: > Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? > > The work around is to set it up in awakeFromNib. Is there any way to tab into an NSBrowser in 10.4? It seems that once the browser loses focus, you can't get focus

Re: NSBrowser and tab order

2010-03-18 Thread Corbin Dunn
Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? The work around is to set it up in awakeFromNib. corbin On Mar 18, 2010, at 1:15 AM, Andrew James wrote: > I have a nib file set up in Interface Builder with a window containing a > single NSBrowser. > > I have set

Re: NSBrowser Question

2010-02-15 Thread Brad Stone
Thanks for your response. That's exactly what I was doing but your response made me take another look (I was working on this all day yesterday). It seems I was reloading the column before the wrapper was completely saved (even though I thought I was)! When I put the reload code in a button an

Re: NSBrowser Question

2010-02-14 Thread Keary Suska
On Feb 14, 2010, at 3:53 PM, Brad Stone wrote: > I have an app that saves it's documents in a fileWrapper. The document's > window has a NSBrowser where users can attach files. Before the document is > saved for the first time the NSBrower's root is a temporary attachments > folder (because t

Re: NSBrowser, NSTreeController and Core Data

2008-10-14 Thread Mark .
On Oct 13, 2008, at 15:44, Quincey Morris wrote: > Your relationship is from categories to subcategories (and inversely > from categories to parent categories). So calling the relationship > "id" makes no sense. IAC, to-many relationship names make more sense > if they're plural ("categories" in

Re: NSBrowser, NSTreeController and Core Data

2008-10-13 Thread Quincey Morris
On Oct 13, 2008, at 08:58, Mark Scardigno wrote: My main goal here is to have core data application that implements an NSBrowser view; You've got a number of conceptual problems here, complicated by the fact that Core Data is not a good place to start if you have no experience with fundame

Re: -[NSBrowser scrollToVisible] not making all of the column

2008-08-07 Thread Martin Redington
multiple cells redraw issue mentioned in my other post, that would be fab ... On Thu, Aug 7, 2008 at 7:59 PM, <[EMAIL PROTECTED]> wrote: > Message: 4 > Date: Thu, 07 Aug 2008 12:37:28 -0400 > From: Bill Cheeseman <[EMAIL PROTECTED]> > Subject: Re: -[NSBrowser scroll

Re: -[NSBrowser scrollToVisible] not making all of the column visible

2008-08-07 Thread Bill Cheeseman
on 2008-08-07 12:06 PM, Martin Redington at [EMAIL PROTECTED] wrote: > [apologies if this is a repost - I sent it a while ago, but didn't see > it appear on the list or in the archives] I guess you didn't see my reply either. I reported this as a bug about 4 years ago, but I'm not aware that any

Re: -[NSBrowser scrollToVisible] not making all of the column visible

2008-08-07 Thread Negm-Awad Amin
Am Do,07.08.2008 um 18:06 schrieb Martin Redington: [apologies if this is a repost - I sent it a while ago, but didn't see it appear on the list or in the archives] I've got an app with a NSOutlineView and NSBrowser view of the same data (the file system). I preserve the user's selection betw

Re: -[NSBrowser scrollToVisible] not making all of the column visible

2008-08-03 Thread Bill Cheeseman
on 2008-08-02 8:58 PM, Martin Redington at [EMAIL PROTECTED] wrote: > Is the behaviour I'm seeing (not all column made visible if any is > already visible) the expected behaviour? I filed a bug about 4 years ago, but nothing came of it. -- Bill Cheeseman - [EMAIL PROTECTED] Quechee Software, Qu