Re: Questions about NSPopupButtonCell and NSBrowser

2015-07-19 Thread Frank D. Engel, Jr.
In case anyone else is struggling with popup button cells like I was, I did finally get this to work - though the solution looks a bit strange it definitely seems to be giving me the behavior I wanted. Short version: there are two entities defined (Core Data) and there is a one-to-many relat

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Graham Cox
> On 5 Jun 2015, at 9:59 am, Frank D. Engel, Jr. wrote: > > > If I don't bind from there, I'm not sure where else to do it from? In IB, in -awakeFromNib, in -windowDidLoad: (in a window controller), etc? Anywhere but in the drawing pathway. I’m not sure whether bindings only makes single co

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Frank D. Engel, Jr.
On 6/4/2015 19:39, Graham Cox wrote: On 5 Jun 2015, at 9:19 am, Frank D. Engel, Jr. wrote: - (void)browser:(NSBrowser *)browser willDisplayCell:(MyBrowserCell *)cell atRow:(NSInteger)row column:(NSInteger)column { // Find the item and set the image. WhateverObject *c = [browser

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Graham Cox
> On 5 Jun 2015, at 9:19 am, Frank D. Engel, Jr. wrote: > > - (void)browser:(NSBrowser *)browser willDisplayCell:(MyBrowserCell *)cell > atRow:(NSInteger)row column:(NSInteger)column > { > // Find the item and set the image. > WhateverObject *c = [browser itemAtRo

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Frank D. Engel, Jr.
application. Sounds very doubtful. [self controlView] is probably unreliable in your cell - you might want to check it. But even if it’s correct (being the NSMatrix for the browser column) invalidating the whole thing is going to be very sub-performant (though should work). Note that NSBrowser

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Graham Cox
or the browser >> column) invalidating the whole thing is going to be very sub-performant >> (though should work). >> >> Note that NSBrowser, unlike a NSTableView, allocates one cell per row within >> a NSMatrix - it does not reuse and redisplay a single cell. >&

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-04 Thread Frank D. Engel, Jr.
might want to check it. But even if it’s correct (being the NSMatrix for the browser column) invalidating the whole thing is going to be very sub-performant (though should work). Note that NSBrowser, unlike a NSTableView, allocates one cell per row within a NSMatrix - it does not reuse and

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-03 Thread Graham Cox
you might want to check it. But even if it’s correct (being the NSMatrix for the browser column) invalidating the whole thing is going to be very sub-performant (though should work). Note that NSBrowser, unlike a NSTableView, allocates one cell per row within a NSMatrix - it does not reuse and

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-03 Thread Frank D. Engel, Jr.
ler one: I have a custom subclass of NSTextFieldCell which I am using to show an icon in an NSBrowser. The icon image is being generated dynamically by a method in my subclass and I want it to change more or less in "real time" as a bound value changes. I have that almost working, but

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-03 Thread Frank D. Engel, Jr.
Frank D. Engel, Jr. wrote: Now what I am hoping is the simpler one: I have a custom subclass of NSTextFieldCell which I am using to show an icon in an NSBrowser. The icon image is being generated dynamically by a method in my subclass and I want it to change more or less in "real time&q

Re: Questions about NSPopupButtonCell and NSBrowser

2015-06-03 Thread Graham Cox
> On 4 Jun 2015, at 7:29 am, Frank D. Engel, Jr. wrote: > > Now what I am hoping is the simpler one: > > I have a custom subclass of NSTextFieldCell which I am using to show an icon > in an NSBrowser. The icon image is being generated dynamically by a method > in my s

Questions about NSPopupButtonCell and NSBrowser

2015-06-03 Thread Frank D. Engel, Jr.
's since there could be thousands of them and it would be WAY too much to navigate through without narrowing it down first (thus the first popup list...) Now what I am hoping is the simpler one: I have a custom subclass of NSTextFieldCell which I am using to show an icon in an NSBrowse

Re: NSBrowser Frustration

2015-03-07 Thread Frank D. Engel, Jr.
for any confusion! On 3/7/2015 12:39, Frank D. Engel, Jr. wrote: I have an NSBrowser class which has at most two columns; it is populated from a core data store. If I delete an object from the core data store that is from the first column of the browser, I can send loadColumnZero to the browser

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

NSBrowser tooltips

2014-05-05 Thread Paul Wasmund
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 implementing tooltips is

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Paul Wasmund
tion:@selector(_browserClicked:)]; // add to end of >> awakeFromNib >> } >> >> >> - (void)_browserClicked:(id)sender >> { >> FileSystemBrowserCell *cell = [_browser selectedCell]; >> [cell setEditable:YES]; >> NSIndexPath *path = [_browser selectionIn

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Keary Suska
emBrowserCell *cell = [_browser selectedCell]; > [cell setEditable:YES]; > NSIndexPath *path = [_browser selectionIndexPath]; > [_browser editItemAtIndexPath:path withEvent:nil select:YES]; > } > > - (BOOL)browser:(NSBrowser *)myBrowser shouldEditItem:(id)item > { >

Re: NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-12 Thread Gary L. Wade
_browserClicked:)]; // add to end of >awakeFromNib >} > > >- (void)_browserClicked:(id)sender >{ > FileSystemBrowserCell *cell = [_browser selectedCell]; > [cell setEditable:YES]; > NSIndexPath *path = [_browser selectionIndexPath]; > [_browser

NSBrowser editItemAtIndexPath:withEvent:select:

2013-04-11 Thread Paul Wasmund
select:YES]; } - (BOOL)browser:(NSBrowser *)myBrowser shouldEditItem:(id)item { return YES; } Selecting any cell in the browser should put it into edit mode. Only works for items in columns other than the first one. Paul ___ Cocoa-dev

NSBrowser fills NSPasteboard but won't drop

2012-08-17 Thread Mr. Andrei Alandru Freeman
I have an NSBroswer with a series of entries that look up a text blob. If the blob exists then: - (BOOL)browser:canDragRowsWithIndexes:inColumn:withEvent: returns YES. This invokes - (BOOL)browser:writeRowsWithIndexes:inColumn:toPasteboard: In here I do the following: NSUInteger changeCount; B

Re: NSBrowser column titles disappear when scrolled [SOLVED]

2011-09-09 Thread Bill Cheeseman
calling -setTitled: in -awakeFromNib. Surely this is a bug in NSBrowser, and >> it must have been around since Jaguar or earlier. >> >> I also notice that setting "Titled" in Interface Builder causes "Separators" >> to be checked when you close the

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

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 &

NSBrowser column titles disappear when scrolled

2011-09-05 Thread Bill Cheeseman
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 column. Manually resizing the window or any column causes them

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: >> >>>

Re: NSBrowser matrix

2011-06-26 Thread Ari Black
ix = [storyLine matrixInColumn:0]; //<- return nil matrix = [storyLine matrixInColumn:1]; //<- returns nil } First step: Break in -awakeFromNib and verify that browser is not nil. I've tested this and it's not nil. browser is an outlet I created and connected with IB. The N

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&#

Re: NSBrowser matrix

2011-06-26 Thread Fritz Anderson
gt; } First step: Break in -awakeFromNib and verify that browser is not nil. Second step: Maybe an NSBrowser doesn't instantiate any matrices until you have responded to browser:numberOfRowsInColumn: with a non-zero value? — F ___

NSBrowser matrix

2011-06-25 Thread Ari Black
Hello all, I'm trying to set the matrix class for an NSBrowser I have in a window. I have the following in my .h file: @interface SpecialMatrix : NSMatrix { } //- (id)initWithFrame:(NSRect)frameRect mode:(NSMatrixMode)aMode prototype:(NSCell *)aCell numberOfRows:(NSInteger)nu

Re: Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
HI Mike, we have implemented the following delegate methods in our class for the Table view and the respective counter parts for NSBrowser have also been added. I tested by placing break points on these two methods but still was not able to see them getting hit when the drag and drop was

Re: Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Mike Abdullah
Look at the datasource API for each view. They both have methods for writing and reading to/from the pasteboard. On 23 Jun 2011, at 09:38, Sandeep Mohan Bhandarkar wrote: > Hi All, > > within my application i have a screen where exists and NSBrowser as well as > an NSTableViews.

Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi All, within my application i have a screen where exists and NSBrowser as well as an NSTableViews. can someone please let me know we can implement dragging items from the browser to the table view. any source reference on this would be very helpful. Thanks in Advance, Sandeep

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

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. > Everyt

NSBrowser Drag and Drop Issue !!

2011-04-14 Thread Naresh Kongara
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 except I'm getting the following exception while dro

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/ (

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 p

NSBrowser & column resizing

2011-03-02 Thread Scott Ribe
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 like a custom view that embeds an NSBrowser would be a good starting point. But I'd want my header row

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:

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 wo

NSBrowser

2010-11-17 Thread Bruno Causse
hi, i can navigate in a tree through the NSbrowser (mouse or keyboard), I would like to view the properties of representedObject during my browsing. but I don't find delegate's method (passif delegate). ( kind: selectedDidChange:) is it possible? who have a track? a li

NSBrowser and column's titles

2010-11-16 Thread Bruno Causse
hi, When I instantiate my browser from XIB file, and when i play with hierarchy, the column 's titles do not appear. Only after the resize the window (container), that the conportment of titles is correct. have you a solution to fix this? thank. _

Accessing Scrollers in NSBrowser ?

2010-09-29 Thread Naresh Kongara
Hi, I want to add an icon over scrollers of Each column in NSBrowser. How can I access the scrollview of each column and how to add action icon to the scroller in each column. Can anybody help me out ? Thanks. kongara___ Cocoa-dev mailing list

NSBrowser drawing glitch

2010-08-29 Thread Sebastian Morsch
Hi! NSBrowser leaves an annoying 2-pixel gap between the right edge of a highlighted browser cell and the vertical column slider. Picture: http://dl.dropbox.com/u/86388/NSBrowserDrawingGlitch.png It does go away when the column width is changed live by the user, but reappears when the cell is

-[NSBrowser setReusesColumns:] broken?

2010-08-10 Thread James Bucanek
Greetings, I'm trying to implement an NSBrowser view using the legacy (10.5) compatible delegate methods (i.e. not the 10.6 "item data source" methods). I'd very much like to use the reusesColumns property to recycle my, rather complex, NSMatrix subclasses. However this

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 selec

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 correc

NSBrowser and double click

2010-07-24 Thread mark
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 called AFTER the deselection. I have tried

Re: NSBrowser dragging

2010-05-08 Thread Micha Fuhrmann
27;m out of luck. Setting the cellClass to NSTextFieldCell does nothing, the NSBrowser under 10.5 still creates NSBrowserCells. ComplexBrower uses 10.6 delegates methods and manages to set the cell class to text field cell. If anyone has any solution it would be great. Michael On 8 mai 2010, at 00:5

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:(NSBrows

Re: NSBrowser dragging

2010-05-07 Thread Jens Alfke
r", and i just > cannot see any difference. NSTableView has a flag that specifies whether vertical mouse-down movement selects or drags. I don’t see a similar flag on NSBrowser, though. Have you compared the browser settings in the inspector in IB

NSBrowser dragging

2010-05-07 Thread Micha Fuhrmann
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 *)rowIndexes inColumn:(NSInteger)column withEv

Re: NSTreeController, NSBrowser image setting

2010-03-24 Thread Tony Romano
I've determined that what I want to do is not possible with using a NSTreeController and a NSBrowser. As I stated below, the willDisplayCell doesn't have the correct parameters to determine the represented object. Notice the cousin to NSBrowser, NSOutlineView, delegate willDisplayCe

Fwd: NSTreeController, NSBrowser image setting

2010-03-24 Thread Tony Romano
> From: Tony Romano > Date: March 24, 2010 1:57:04 AM PDT > To: Cocoa Developers > Subject: Re: NSTreeController, NSBrowser image setting > > Thanks Ken, that was somewhat helpful. However, I am still having trouble > mapping the arguments passed via(- (void)browser

Re: NSTreeController, NSBrowser image setting

2010-03-23 Thread Ken Thomases
On Mar 23, 2010, at 9:22 PM, Tony Romano wrote: > I'm using a NSTreeController and bindings to contain the data for a > NSBrowser. Data from my objects is being displayed fine. I want to add an > image to the entries in the browser. From what I gather, I need to im

NSTreeController, NSBrowser image setting

2010-03-23 Thread Tony Romano
I'm using a NSTreeController and bindings to contain the data for a NSBrowser. Data from my objects is being displayed fine. I want to add an image to the entries in the browser. From what I gather, I need to implement the willDisplayCell delegate method. The question I have is how do

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

Re: NSBrowser and tab order

2010-03-18 Thread Andrew James
Yup you got it. I actually tracked down an Apple doc in regards to that last evening. I did go ahead and set it up correctly in awakeFromNib as follows: // DUE to NSBrowser bug in regards to its implementation // of acceptsFirstResponder, forcibly load it and then // make it the first

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

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. > >

NSBrowser and tab order

2010-03-18 Thread Andrew James
I have a nib file set up in Interface Builder with a window containing a single NSBrowser. I have set the NSBrowser as the window's initialFirstResponder... but for some reason when the window is displayed the NSBrowser does not receive keyboard focus and will not receive keyboard focus

Re: Class instance defaults: e.g. NSBrowser

2010-03-17 Thread Keary Suska
or. I'll use NSBrowser's - > (BOOL)sendsActionOnArrowKeys as an example. In Apple's documentation there's > no mention of the default. > > For my purposes, I want to make sure from release to release that my > NSBrowser instance does send an action when up/dow

Class instance defaults: e.g. NSBrowser

2010-03-17 Thread Andrew James
example. In Apple's documentation there's no mention of the default. For my purposes, I want to make sure from release to release that my NSBrowser instance does send an action when up/down keys are used.  Does that mean as a Cocoa developer I'm content to always code [ myBrowser setSend

NSBrowser + Core Data Woes

2010-03-03 Thread Karl Moskowski
I'm manually populating an in-memory CD store with a hierarchy of objects and binding them to a NSBrowser via a NSTreeController. Everything displays fine, but now I'm trying to get at the underlying managed object; I use a custom NSBrowserCell that has a checkbox next to the name,

Re: NSBrowser Question

2010-02-15 Thread Brad Stone
apper. 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 the filewrapper doesn't exist). After it's saved that >>

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 attach

NSBrowser Question

2010-02-14 Thread Brad Stone
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 the filewrapper doesn't exist). A

Re: Confused about setting selection in NSBrowser

2010-01-16 Thread Chris Idou
17:00 AM Subject: Re: Confused about setting selection in NSBrowser On Jan 15, 2010, at 8:07 AM, Keary Suska wrote: > On Jan 14, 2010, at 9:56 PM, Chris Idou wrote: > >> I'm trying to set the selected item in an NSBrowser. >> >> I don't want to use setPath: be

Re: Confused about setting selection in NSBrowser

2010-01-15 Thread Corbin Dunn
On Jan 15, 2010, at 8:07 AM, Keary Suska wrote: > On Jan 14, 2010, at 9:56 PM, Chris Idou wrote: > >> I'm trying to set the selected item in an NSBrowser. >> >> I don't want to use setPath: because the items I'm storing in the browser >> are

Re: Confused about setting selection in NSBrowser

2010-01-15 Thread Keary Suska
On Jan 14, 2010, at 9:56 PM, Chris Idou wrote: > I'm trying to set the selected item in an NSBrowser. > > I don't want to use setPath: because the items I'm storing in the browser are > not unique, so therefore paths are not unique. > > I'm trying t

Confused about setting selection in NSBrowser

2010-01-14 Thread Chris Idou
I'm trying to set the selected item in an NSBrowser. I don't want to use setPath: because the items I'm storing in the browser are not unique, so therefore paths are not unique. I'm trying to use setIndexPath: but when I try the program throws an exception: HIToolbox

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Alastair Houghton
On 21 Sep 2009, at 17:27, Jens Alfke wrote: (In practice, the HFS+ filesystem does return filenames in alphabetical order, although I think it's just sorted by Unicode codepoint, It's a little more complicated in practice; case-insensitive HFS+ sorts by means of a case-insensitive compari

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Jens Alfke
On Sep 21, 2009, at 8:28 AM, Graham Cox wrote: Ideally if the list can't display more than, say 50 files at a time (depends on how big your screen is, etc), then it shouldn't touch more than 50 files on disk. It has never really managed that however, and maybe there are fundamental limitat

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Jean-Francois Dontigny
Hi, I don't know how helpful to you this could be, but you might want to take a look at: http://developer.apple.com/mac/library/documentation/Performance/Conceptual/ FileSystem/FileSystem.html#//apple_ref/doc/uid/1161 You might be able to salvage something from the samples there. JFD On 9

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Graham Cox
On 22/09/2009, at 1:20 AM, Dave DeLong wrote: Simple tests show that Finder can handle a folder of a million files in about 2-3 minutes That's still effectively unusable. Ideally if the list can't display more than, say 50 files at a time (depends on how big your screen is, etc), then it

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Dave DeLong
That's a great question. Simple tests show that Finder can handle a folder of a million files in about 2-3 minutes (more than twice as fast as what I described in my original email). Dave On Sep 21, 2009, at 9:01 AM, Scott Ribe wrote: For normal-sized directories, this works pretty well.

Re: Optimizing Enormous lists in NSBrowser

2009-09-21 Thread Scott Ribe
> For normal-sized directories, this works pretty well. However, in > my "worst-case" scenario of a flat directory containing 1 million > files... Depending on what your purpose here is, you might also benchmark how the Finder handles increasingly large directories, and set that as the bar to mat

Re: Optimizing Enormous lists in NSBrowser

2009-09-18 Thread Jens Alfke
On Sep 17, 2009, at 2:32 PM, Dave DeLong wrote: For normal-sized directories, this works pretty well. However, in my "worst-case" scenario of a flat directory containing 1 million files, I've found that it takes 34.8 seconds to retrieve a full directory listing (so I know how many to retu

Optimizing Enormous lists in NSBrowser

2009-09-17 Thread Dave DeLong
Hi everyone, I'm recreating a Finder-like column view fro browsing the disk, and I've come up against some optimization impasses. First off, I'm using passive-loading, so that I only load information regarding an item once I get the browser:willDisplayCell: message. This works wonderfull

NSBrowser & Core Data?

2009-06-03 Thread KK
Hello, I am writing a program that needs to load hierarchical data from an XML document (that I have loaded into a NSXMLDocument), into a NSBrowser... I tried modifying the SimpleBrowser? example code to suit my needs, but then I started wondering if Core Data would be able to do it... I looked

Re: Context Menu in NSBrowser

2009-01-27 Thread Benjamin Stiglitz
> All NSViews show, when control-clicked, their context menu. > But not the NSView subclass NSBrowser. > > Is this a documented feature or a bug? This is a bug in the Leopard and earlier versions of AppKit. For now, you can loop through the matrices using -matrixForColumn: and set

Context Menu in NSBrowser

2009-01-26 Thread Gerriet M. Denkmann
All NSViews show, when control-clicked, their context menu. But not the NSView subclass NSBrowser. Is this a documented feature or a bug? And what is the recommended workaround? Kind regards, Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Martin Redington
was stretching for the interpretation my conscience would be most > comfortable with :). I think it's worth filing a Radar requesting > notifications analogous to NSTableViewSelectionIsChangingNotification and > NSTableViewSelectionDidChangeNotification. rdar://6290957 > I did a quick s

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: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Andy Lee
tification. I did a quick search for a third-party alternative to NSBrowser, along the lines of what Rainer Brockerhoff did with RBSplitView. I thought maybe there would be something at Cocoatech <http://www.cocoatech.com/opensource.php >. But I haven't found anything. --And

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Martin Redington
On Tue, Oct 14, 2008 at 8:12 AM, Andy Lee <[EMAIL PROTECTED]> wrote: > On Oct 14, 2008, at 12:45 AM, Martin Redington wrote: >> >> On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: >>> >>> How about if you leave the matrix class alone and do [myBrowser >>> setSendsActionOnArrowKe

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-14 Thread Andy Lee
On Oct 14, 2008, at 12:45 AM, Martin Redington wrote: On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: How about if you leave the matrix class alone and do [myBrowser setSendsActionOnArrowKeys:YES]? Then give the browser a target and action, and in the action method do wh

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Martin Redington
On Tue, Oct 14, 2008 at 5:25 AM, Andy Lee <[EMAIL PROTECTED]> wrote: > On Oct 13, 2008, at 11:16 PM, Martin Redington wrote: >> >> I've got an NSBrowser, and a secondary view whose value depends on the >> current selection in the NSBrowser. > > [...] >>

Re: intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Andy Lee
On Oct 13, 2008, at 11:16 PM, Martin Redington wrote: I've got an NSBrowser, and a secondary view whose value depends on the current selection in the NSBrowser. [...] I seem to be capturing everything so far, except for the case where the selection is extended by holding down shift and t

intercepting NSBrowser multiple selection extension with shift down/up arrow

2008-10-13 Thread Martin Redington
I've got an NSBrowser, and a secondary view whose value depends on the current selection in the NSBrowser. When only one item is selected, the secondary view shows the path of the selected item. When multiple items are selected, the secondary view should show nothing. I've set up a no

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

NSBrowser, NSTreeController and Core Data

2008-10-13 Thread Mark Scardigno
here is to have core data application that implements an NSBrowser view; this being a hierarchic view of entities which I call categories, such as... Category -> SubCategories -> SubCategories , etc. The sub categories selected should be based on the previous columns selected category, obvio

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

NSBrowser redraw issues with multiple selection

2008-08-07 Thread Martin Redington
Here's another NSBrowser issue (this is on Leopard, BTW) I'm allowing multiple selection in my NSBrowser. When my NSBrowser loses focus, the multiple selected cells correctly change to have a grey background, but when it regains focus, only the last selected cell gets updated correc

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&#

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

2008-08-07 Thread 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 between when switching between views. A

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

NSBrowser redraw issues

2008-08-02 Thread Martin Redington
Here's another NSBrowser issue ... I'm allowing multiple selection in my NSBrowser. When my NSBrowser loses focus, the multiple selected cells correctly change to have a grey background, but when it regains focus, only the last selected cell gets updated correctly to the active select

  1   2   >