NSOutlineView

2008-12-29 Thread Mahaboob
My application uses an NSPopupButton and NSOutlineView. PopupButton shows all the table names in the database and the outlineView displays the data in the corresponding table selected from the popupButton. It is working fine. I also need to display one default table's data in the outlineView

NSOutlineView

2008-08-18 Thread mahaboob
Hi all I'm new to cocoa. I want to display the outline view item by a disclosure triangle, then one checkbox, then text field to display the name of the nodes. I didn't find any documentation regarding this. How can I do this ? Thanks in advance. ___ C

nsoutlineview crashes

2008-02-22 Thread Julius Eckert
Hi, i am implementing a datasource for an nsoutlineview to represent the contents of a simple tree-structure defined by the following class (simplified): @interface TBCatalogNode : NSObject { NSMutableArray* children; } @property (readonly, retain) NSMutableArray* children; (the array

styling NSOutlineView

2008-03-14 Thread Nick Rogers
Hi, I have gone through http://katidev.com/blog/?p=36 which shows how to show an Icon and two rows of text in an row of NSTableView. And it has been done by sub-classing NSCell. I want exactly the same thing in an NSOutlineView (i.e. an Icon and two rows of text in an row of NSOutlineView

NSOutlineView Problem

2008-04-05 Thread Nick Rogers
Hi, i have checkboxes (NSButtonCell) in the first column of NSOutlineView. problem is what should I return as object for that column. Program is crashing there. Thanks, nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: NSOutlineView

2008-12-29 Thread chaitanya pandit
Hi, Mahaboob, Did you try calling [outlineView reloadData] in ur launch method? -Chaitanya On 30-Dec-08, at 10:33 AM, Mahaboob wrote: My application uses an NSPopupButton and NSOutlineView. PopupButton shows all the table names in the database and the outlineView displays the data in the

Re: NSOutlineView

2008-12-30 Thread Mahaboob
Hi Chaitanya, I tried it then it fires the event - (int)outlineView:(NSOutlineView *)outlineView numberOfChildrenOfItem:(id)item and it returns 0. But when I'm selecting the same table from the popupButton then it returns the actual number of children. Why this happens? Thanks mahaboob

Re: NSOutlineView

2008-12-30 Thread Mahaboob
e >>> view >>> may be nil. For instance, if you call the function from an init >>> method >>> for some other object in the nib. >>> >>> Sent from my iPhone >>> >>> On Dec 30, 2008, at 12:03 AM, Mahaboob wrote: >>>

Re: NSOutlineView

2008-12-30 Thread Graham Cox
On 30 Dec 2008, at 8:39 pm, Mahaboob wrote: I'm calling this method from the action method that opens this window. I used the code: - (IBAction) openMediaWindow: (id) sender { [cbChooseDatabase selectItemWithTitle:@"Default table"]; [self medialistSelectionChanged]; [OutlineView reloadDat

Re: NSOutlineView

2008-12-30 Thread Mahaboob
"Timothy Larkin" wrote: >>> >>>> Depending on when you call the method, the outlet for the outline >>>> view >>>> may be nil. For instance, if you call the function from an init >>>> method >>>> for some other

Re: NSOutlineView

2008-12-30 Thread Mahaboob
I used awakeFromNib method. When I¹m running the program in debugger, outlineView get instantiated and shows its value ³0x14c260² and also its variables(_numberOfRows ,...) shows the value ³0² and opens the main window. >From the main window when I¹m clicking the button, that opens the window conta

Re: NSOutlineView

2008-12-30 Thread Mahaboob
I¹m calling this method from a toolbar menu item. I observed that when I¹m calling this method from an NSButton¹s action method, outlineView displays the outline data. Why this happens? I need to call this method from toolbar menu item only. How can I achieve this? On 12/31/08 10:23 AM, "Mahaboob

Re: NSOutlineView

2008-12-31 Thread Mahaboob
Data is stored in a database and I¹m retrieving it by using QuickLite database. On 12/31/08 6:31 PM, "Timothy Larkin" wrote: > Where are the data coming from? A core data store? Or do you load them > explicitly? > > > -- > > > Timothy Larkin > > > Abstract Tools > > > Caroline, NY >

Re: NSOutlineView

2008-12-31 Thread Mahaboob
When I¹m calling this method from toolbar in the main window, first the outlineView shows the value ³0x0² then it call another method, that queries the database retrieves all the data needed, and then control goes to [OutlineView reloadData]; .then also outlineView shows the value ³0x0². Then it f

Re: NSOutlineView

2009-01-05 Thread Mahaboob
I was created toolbar items by coding. Now I deleted it and created it by using IB. Then all are working well. Thanks a lot. mahaboob On 1/1/09 7:30 PM, "Timothy Larkin" wrote: > I don't understand what you mean by "calling this method from toolbar". How > does control go to the toolbar? > >

NSOutlineView indentation

2009-01-07 Thread James Walker
Is there any way to change the difference in indentation between levels in an NSOutlineView, without changing the indentation of the top level? Having the indentation affect the top level may be technically consistent, but I don't know why anyone would want it to work that way. I sea

[NSOutlineView reloadData]

2009-01-08 Thread David Blanton
Is there a way to be notified when a reloadData operation is complete? David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-ad

Re: NSOutlineView

2008-08-18 Thread Negm-Awad Amin
Hi, do you want to display all three items (triangle, icon, text) in one column? Than you need an ImageAndTextCell. Browse your examples folder to get it. Amin Am Mo,18.08.2008 um 08:38 schrieb [EMAIL PROTECTED]: Hi all I'm new to cocoa. I want to display the outline view item by a dis

NSOutlineView example

2008-09-26 Thread Arun
Hello, Does anyone know or has good example code showing how to create a NSOutlineView, create a datasource and information to the datasource and display the final result. I am trying to dispaly a NSDictionary in an oultlineview. Thanks Arun ___ Cocoa

NSOutlineView parentobject

2010-02-02 Thread Poonam Virupaxi Shigihalli
return parent object it always returns recent parent object i.e Grp2. Can anyone please help me out to return the appropriate parent object? Following is my implementation: - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item

NSOutlineView parentobject

2010-02-04 Thread Banupriya K
return parent object it always returns recent parent object i.e Grp2. Can anyone please help me out to return the appropriate parent object? Following is my implementation: - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item

Re: nsoutlineview crashes

2008-02-22 Thread Corbin Dunn
On Feb 22, 2008, at 6:51 AM, Julius Eckert wrote: Hi, i am implementing a datasource for an nsoutlineview to represent the contents of a simple tree-structure defined by the following class (simplified): @interface TBCatalogNode : NSObject { NSMutableArray* children; } @property (readonly

NSOutlineView "sliding" animation

2008-03-25 Thread Mitchell Livingston
Hello, I want to use core animation to add a sliding effect when expanding/ collapsing rows in an outline view (like iChat's groups), but I can't figure out where to get started. I have tried using nsview's animator, but it doesn't seem to be compatible with this type of animation. Could s

[Apple Example] NSOutlineView

2008-03-30 Thread Adam Gerson
I just came across this great Apple NSTreeController / NSOutlineView example. It incorporates a lot of 10.5 style techniques into one example. -Image and text cells -iTunes like groups in OutlineView -10.5 Window styles -CoreAnimation If this is comenly known I appologize, but I have spent a

Re: NSOutlineView Problem

2008-04-05 Thread Nick Rogers
Nick Rogers wrote: Hi, i have checkboxes (NSButtonCell) in the first column of NSOutlineView. problem is what should I return as object for that column. Program is crashing there. Thanks, nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: NSOutlineView Problem

2008-04-05 Thread のりちん
Nick, I believe NSCell has setFont method to specify which NSFont you want to use. > Also I need to show smaller font in other columns of this outline view. > The default font is bigger. > So do I need to set custom cell in order to achieve small font? __

Re: NSOutlineView Problem

2008-04-05 Thread Peter Maurer
i have checkboxes (NSButtonCell) in the first column of NSOutlineView. problem is what should I return as object for that column. Program is crashing there. Try [NSNumber numberWithInt: (isChecked ? NSOnState : NSOffState)]. Also I need to show smaller font in other columns of this outline

NSButtonCell in NSOutlineView

2008-05-20 Thread David
I'm still trying to get a NSButtonCell in an NSOutlineView where the button cell is in the first column, is a checkbox style AND the title of the cell is set based on the row so that it shows data rather than needing a separate column for its title. I've rewritten it from using bindings

NSOutlineView threading problem

2008-06-14 Thread David
I'm having various intermittent problems with NSOutlineView which I can only presume is somehow caused by my use of a secondary thread to augment the node tree supplied via a data source. My assumption has been that I'm not doing anything that should cause NSOutlineView a problem. I a

NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
I've trolled through the archives looking for help on this, but I can't seem to find anything that quite works. I'm trying to set it up such that an NSOutlineView starts out fully expanded. In the delegate, I have the following code: - (void)awakeFromNib {

Another NSOutlineView question

2008-12-08 Thread Graham Cox
In my NSOutlineView, I disallow selection of group items by implementing the delegate method -outlineView:shouldSelectItem:, which works fine, but I still want to be able to edit the titles of group items. The above method prevents this also. How can I prevent selection of the the item but

Re: NSOutlineView indentation

2009-01-07 Thread Bill Monk
e top-level disclosure controls to impinge on neighboring columns. The following fixed it for my purposes. // Add to a subclass of NSOutlineView #define kApplyNSOutlineViewIndentationFix 1 // Changing the indentation of NSOutlineView causes the 0-level items // to indent possibly large amoun

Re: NSOutlineView indentation

2009-01-08 Thread Corbin Dunn
On Jan 7, 2009, at 5:32 PM, James Walker wrote: Is there any way to change the difference in indentation between levels in an NSOutlineView, without changing the indentation of the top level? Having the indentation affect the top level may be technically consistent, but I don't kno

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method call, so it's completed when it returns. I bet there's something that you're trying to do that you're

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
My error ... I thought reloadData was asynchronous! On Jan 8, 2009, at 11:30 AM, j o a r wrote: On Jan 8, 2009, at 9:42 AM, David Blanton wrote: Is there a way to be notified when a reloadData operation is complete? What do you mean with complete? It's a regular synchronous method call

Re: NSOutlineView indentation

2009-01-08 Thread James Walker
Bill Monk wrote: On Jan 7, 2009, James Walker wrote: Having the indentation affect the top level may be technically consistent, but I don't know why anyone would want it to work that way. Yes, I agree. Top-level items should stay near the left margin, and setting the indent to 0 should n

Re: [NSOutlineView reloadData]

2009-01-08 Thread j o a r
On Jan 8, 2009, at 11:07 AM, David Blanton wrote: My error ... I thought reloadData was asynchronous! It all depends on what you're after. Display updates are almost always delayed in Cocoa, meaning that the outline view will not show updated contents after your call to reloadData. All v

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
I want to look through all the items, find the last one selected before the app terminated so I can reselect that item. I wanted to be sure that all items were loaded before I started looking. Since reloadData is synchronous (thank you) I call my finding method right after the reloadData ca

Re: [NSOutlineView reloadData]

2009-01-08 Thread Shawn Erickson
On Thu, Jan 8, 2009 at 12:04 PM, David Blanton wrote: > I want to look through all the items, find the last one selected before the > app terminated so I can reselect that item. I wanted to be sure that all > items were loaded before I started looking. > Since reloadData is synchronous (thank yo

Re: [NSOutlineView reloadData]

2009-01-08 Thread David Blanton
To clarify. App is running. User selects an item in the outline view. User quits app. In windowWillClose save to user defaults an identifier for the item selected in the outline view. At start up reload the outline view etc etc as already described. On Jan 8, 2009, at 1:36 PM, Shawn E

Image in NSOutlineView

2008-08-29 Thread mahaboob
Hi all, I'm trying to develop an application that uses an OutlineView in which it displays items like a disclosure triangle, then one checkbox, then a text field int the same column. For that I gone through the DragNDropOutlineview example provided with Xcode. Then I copied the ImageAndTextCell cla

Image in NSOutlineView

2008-08-29 Thread mahaboob pa
Hi all, I'm trying to develop an application that uses an OutlineView in which it displays items like a disclosure triangle, then one checkbox, then a text field int the same column. For that I gone through the DragNDropOutlineview example provided with Xcode. Then I copied the ImageAndTextCell cla

NSOutlineView developer example

2008-09-03 Thread Boris Prohaska
Hi Guys, i tried to understand the NSOutlineView developer example which is in /Developer/Examples/AppKit/OutlineView. It simply shows the entire filesystem. I tried to alter it, so it shows any relative path of the filesystem, but whatever i do, it does not work. Does anybody have an idea

Re: NSOutlineView example

2008-09-26 Thread chaitanya pandit
Have a look at /Developer/Examples/Appkit/OutlineView On 26-Sep-08, at 2:08 PM, Arun wrote: Hello, Does anyone know or has good example code showing how to create a NSOutlineView, create a datasource and information to the datasource and display the final result. I am trying to dispaly a

NSOutlineView assertion failures

2008-10-03 Thread Jeff Wilcox
I am suddenly having a load of issues with NSOutline view failing with the following assertion: Assertion failure in -[NSOutlineView _expandItemEntry:expandChildren:startLevel:](), /SourceCache/AppKit/ AppKit-949.35/TableView.subproj/NSOutlineView.m:1003 I seemed to be able to make this

CoreData and NSOutlineView.

2009-03-25 Thread Scott Andrew
I have a question, may know the answer already. I am looking at using core data to store the project for my application I am starting. I want a categorized NSOutlineView that has categories and then children under. The categories just describe the nodes underneath it. They do not not

Problem with NSOutlineView

2009-04-02 Thread Laurent Daudelin
Hello all. I'm using an NSOutlineView driven by an NSTreeController. I use it to display the file system from different location on disks, a bit like in the Finder in 10.5 with the sidebar. The problem I'm having is when I expand an item from one location and then switch

NSOutlineView and tags...

2009-06-07 Thread Scott Andrew
This may sound like a newbie questions but never had this issue before.. I am trying to add a tag ID to an NSOutlineView thats in one view controller. In another view controller is a table view. I listen to NSOutlineViewSelectionDidChange notifications and fill the table based on the

NSOutlineView selection disable

2009-06-25 Thread Arun
Hi All, I have an application in which i use NSOutlineView Control. I need to disable selection of items in the outlineview when the mouse is down and select only on mouse up like in iTunes. Any ideas? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev

NSOutlineView + selectionIndexPaths binding

2010-01-20 Thread Andrew Shamel
Hi All, I've dug around in the archives and found several threads addressing this question, but the solutions don't seem to work. NB: all binding was done in Interface Builder I have an NSOutlineView with its only column bound at treeController.arrangedObjects.name to an NSTreeContr

Re: NSOutlineView parentobject

2010-02-02 Thread Jens Alfke
item1 in Grp1, > i have to access the parent object i.e Grp1. > But when i return parent object it always returns recent parent object i.e > Grp2. NSOutlineView doesn't care about parent objects. If your own data model needs multiple parent objects, then what you have isn't a tr

Re: NSOutlineView parentobject

2010-02-04 Thread Joar Wingfors
tation: "NSOutlineView requires that each item in the outline view be unique." j o a r ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coc

Re: NSOutlineView parentobject

2010-02-04 Thread Jens Alfke
On Feb 2, 2010, at 8:25 PM, Banupriya K wrote: > I have an outlineview to display n number of groups(Example: Grp1, Grp2 etc), > each can have n number of items, same item can be present in many groups. You are posting THE IDENTICAL QUESTION again, which has already been answered several times

Re: NSOutlineView parentobject

2010-02-04 Thread Kyle Sluder
On Thu, Feb 4, 2010 at 9:16 PM, Jens Alfke wrote: > You are posting THE IDENTICAL QUESTION again, which has already been answered > several times. You're not even responding to our answers. Why should I (or > any of us) keep answering your same question over and over? I can't find another messa

Re: NSOutlineView parentobject

2010-02-04 Thread Jens Alfke
On Feb 4, 2010, at 9:24 PM, Kyle Sluder wrote: > I can't find another message in my archives from anyone named > "Banupriya". But I had the exact same reaction at first, and now I'm > starting to get suspicious. You're right, the original message (on the 2nd) was from Poonam Virupaxi Shigihalli

RE: NSOutlineView parentobject

2010-02-04 Thread Poonam Virupaxi Shigihalli
=tataelxsi.co...@lists.apple.com on behalf of Jens Alfke Sent: Fri 2/5/2010 11:25 AM To: Kyle Sluder Cc: Banupriya K; cocoa-dev@lists.apple.com Subject: Re: NSOutlineView parentobject On Feb 4, 2010, at 9:24 PM, Kyle Sluder wrote: > I can't find another message in my archives from anyo

Re: NSOutlineView parentobject

2010-02-05 Thread Graham Cox
On 05/02/2010, at 5:21 PM, Poonam Virupaxi Shigihalli wrote: > My team member banupriya, working with me in the same project , she had > posted the query since she got a reply from the list saying the query is on > hold . > so i posted it on her behalf. > > sorry for inconvenience. Neverthe

Re: NSOutlineView "sliding" animation

2008-03-26 Thread Lucas Gladding
Mitchell iChat doesn't use a standard NSTableView or NSOutlineView. The standard views use one NSCell for each column and draw each row's contents with the same NSCell (think of using a stencil when painting). For core animation, the ideal setup is an NSView for

NSOutlineView / NSSplitView redraw delay

2008-03-29 Thread Milen Dzhumerov
Hi all, I've just noticed a small regression in my app. I've got an NSOutlineView and an NSTableView inside an NSSplitView. Now, imagine that the outline view has some text rows and I drag the splitter such that the whole text in the outline is no longer visible. What used to

to make NSOutlineView faster

2008-04-17 Thread Nick Rogers
Hi, I have NSOutlineView display a tree of files and folders in the root "/" filesystem. I also have checkboxes in the first column. whenever a item is clicked, say first time, then this item and all its children are also marked internally. so the check/uncheck mechanism

holding NSOutlineView from display

2008-05-09 Thread Nick Rogers
Hi, my app has only one window, with the outline view in a tab, which I show after the data is ready. The problem is how can I hold outline view until, the data is ready completely. I gather that I'd have to do something with the method: - (id)outlineView:(NSOutlineView *)ov child

Re: NSOutlineView threading problem

2008-06-14 Thread Jens Alfke
. I don't think that's safe. I have seen no assurances that NSOutlineView is thread-safe, and in general most AppKit control classes should _not_ be accessed from background threads. The best thing to do is have your background thread use - performSelectorOnMainThread:, calling a m

Re: NSOutlineView threading problem

2008-06-14 Thread Bill Bumgarner
. Neither NSOutlineView nor NSMutableArray are thread safe. Unless the documentation explicitly claims thread safety, assume the class is not thread safe.As well, no amount of locking will make a non-thread-safe object thread-safe unless you absolutely positively know that only your code (and

Re: NSOutlineView threading problem

2008-06-14 Thread j o a r
On Jun 14, 2008, at 9:12 PM, Bill Bumgarner wrote: As well, no amount of locking will make a non-thread-safe object thread-safe unless you absolutely positively know that only your code (and only your code protected by the locks) contain the only reference to said object. In the general

Re: NSOutlineView threading problem

2008-06-15 Thread David
ng things I didn't think I was doing on the secondary thread. On Sat, Jun 14, 2008 at 10:19 PM, David <[EMAIL PROTECTED]> wrote: > I'm having various intermittent problems with NSOutlineView which I can > only presume is somehow caused by my use of a secondary thread to augmen

Re: NSOutlineView threading problem

2008-06-15 Thread Bill Bumgarner
PROTECTED] <%your stuff%>", [NSThread currentThread], [self class], self, NSStringFromSelector(_cmd)<%args%>); Totally invaluable for debugging these kinds of issues. I would highly recommend that you look long and hard at how are you are managing the data structures that are also

Re: NSOutlineView threading problem

2008-06-15 Thread David
On Sun, Jun 15, 2008 at 8:46 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote: > I would highly recommend that you look long and hard at how are you are > managing the data structures that are also used by NSOutlineView. In > particular, if you are futzing with an NSMutableArray

Re: NSOutlineView threading problem

2008-06-15 Thread Bill Bumgarner
On Jun 15, 2008, at 8:05 PM, David wrote: On Sun, Jun 15, 2008 at 8:46 PM, Bill Bumgarner <[EMAIL PROTECTED]> wrote: I would highly recommend that you look long and hard at how are you are managing the data structures that are also used by NSOutlineView. In particular, if you are f

Re: NSOutlineView threading problem

2008-06-15 Thread Michael Ash
On Sun, Jun 15, 2008 at 8:05 PM, David <[EMAIL PROTECTED]> wrote: > As it stands its a nightmare if something as trivial as an Array > isn't even thread safe. I'm not sure how having thread safe arrays would help. If you're mutating a collection in one thread while you're accessing it from another

Re: NSOutlineView threading problem

2008-06-16 Thread David
On Sun, Jun 15, 2008 at 12:03 AM, Jens Alfke <[EMAIL PROTECTED]> wrote > > I don't think that's safe. I have seen no assurances that NSOutlineView is > thread-safe, and in general most AppKit control classes should _not_ be > accessed from background threads. > Whi

Re: NSOutlineView threading problem

2008-06-16 Thread David
On Mon, Jun 16, 2008 at 1:25 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > > I'm not sure how having thread safe arrays would help. If you're > mutating a collection in one thread while you're accessing it from > another then you will have trouble no matter what happens. > > Take this example. The o

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
On Jun 16, 2008, at 7:44 AM, David wrote: While I've been investigating this, I have found more documentation on thread safety issues in the "Threading Programming Guide". I'd read it before but it helps to re-read. It says that NSView classes ARE thread safe... to an extent. Very interestin

Re: NSOutlineView threading problem

2008-06-16 Thread Jens Alfke
On 15 Jun '08, at 8:05 PM, David wrote: Threading is hard for me to comprehend in the objective-c world. In Java, threading is powerful and relatively simple to implement with simple relatively consistent rules and many classes which are thread safe. I used to be the tech lead for Java tool

Re: NSOutlineView threading problem

2008-06-16 Thread Adam R. Maxwell
On Jun 16, 2008, at 11:17 AM, j o a r wrote: On Jun 16, 2008, at 7:44 AM, David wrote: While I've been investigating this, I have found more documentation on thread safety issues in the "Threading Programming Guide". I'd read it before but it helps to re-read. It says that NSView classes

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
On Jun 16, 2008, at 9:05 AM, Adam R. Maxwell wrote: This level of vagueness is persistent throughout the framework docs, though, and gives them an absolute value |v| < 0 with respect to threading (my opinion, of course). And yes, I know the "file a bug report" mantra, but a) I don't get p

Re: NSOutlineView threading problem

2008-06-16 Thread Adam R. Maxwell
On Jun 16, 2008, at 12:47 PM, j o a r wrote: On Jun 16, 2008, at 9:05 AM, Adam R. Maxwell wrote: This level of vagueness is persistent throughout the framework docs, though, and gives them an absolute value |v| < 0 with respect to threading (my opinion, of course). And yes, I know the "fi

Re: NSOutlineView threading problem

2008-06-16 Thread j o a r
On Jun 16, 2008, at 3:59 PM, Adam R. Maxwell wrote: The confusion between "thread safe" and "main thread only" on this list hasn't helped, either... From a documentation perspective there is no single or simple definition of "thread safe", it all depends on the context. Some objects are

NSOutlineView force expansion/refresh?

2008-07-16 Thread Michael Hanna
I'm using observeValueForKeyPath:ofObject:change:context: to detect when a change occurs in my data model. When a non-leaf node gets added, the outline view draws the new item, but in an unexpanded state. I try this code: [m_rulesOutlineView noteNumberOfRowsChanged]; // expand all it

Re: PropertyList -> NSBrowser / NSOutlineView?

2008-07-22 Thread Ken Thomases
On Jul 22, 2008, at 6:09 PM, Joeles Baker wrote: Any other hints for a really basic NSBrowser or NSOutlineView sample (not /Developer/Examples/AppKit/OutlineView) ? I can't personally vouch for these, but a full-text search of all doc sets yields: http://developer.apple.com/sampl

Re: PropertyList -> NSBrowser / NSOutlineView?

2008-07-22 Thread Joel Norvell
Joeles, The NIBs and Xcode project files seem to be absent, but you can still see the source code for "OutlineMe" in Google Code Search. Go to: http://google.com/codesearch And enter: OutlineMe lang:objectivec HTH, Joel ___ Cocoa-

Re: PropertyList -> NSBrowser / NSOutlineView?

2008-07-23 Thread Corbin Dunn
On Jul 22, 2008, at 4:48 PM, Joeles Baker wrote: Hi Ken, Any other hints for a really basic NSBrowser or NSOutlineView sample (not /Developer/Examples/AppKit/OutlineView) ? I can't personally vouch for these, but a full-text search of all doc sets yields: http://developer.appl

Re: NSOutlineView initial expansion

2008-12-03 Thread Ashley Clark
PM, Andrew Shamel wrote: I've trolled through the archives looking for help on this, but I can't seem to find anything that quite works. I'm trying to set it up such that an NSOutlineView starts out fully expanded. In the delegate, I have the following code: - (void)awakeF

Re: NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
Ahh, brilliant!! It worked a treat. Thanks so much! Try delaying your call to expandItem: in your awakeFromNib. - (void)expandAllItems { [outline expandItem:nil expandChildren:YES]; } - (void)awakeFromNib { /* snip */ [self performSelector:@selector(expandAllItems) withOb

Re: Another NSOutlineView question

2008-12-09 Thread Volker in Lists
item. Hth, volker Am 09.12.2008 um 06:55 schrieb Graham Cox: In my NSOutlineView, I disallow selection of group items by implementing the delegate method -outlineView:shouldSelectItem:, which works fine, but I still want to be able to edit the titles of group items. The above method pre

Re: Another NSOutlineView question

2008-12-09 Thread Corbin Dunn
r)row AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; Return YES for your cell, and it should be trackable, and hence editable... corbin Hth, volker Am 09.12.2008 um 06:55 schrieb Graham Cox: In my NSOutlineView, I disallow selection of group items by implementing the delegate method -outlineView:shouldSelectItem:, which

Re: Another NSOutlineView question

2008-12-09 Thread Graham Cox
n row: (NSInteger)row AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; Return YES for your cell, and it should be trackable, and hence editable... corbin Hth, volker Am 09.12.2008 um 06:55 schrieb Graham Cox: In my NSOutlineView, I disallow selection of group items by implementing the del

Re: Another NSOutlineView question

2008-12-09 Thread Corbin Dunn
)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger) row AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER; Return YES for your cell, and it should be trackable, and hence editable... corbin Hth, volker Am 09.12.2008 um 06:55 schrieb Graham Cox: In my NSOutlineView, I disallow sele

Re: Another NSOutlineView question

2008-12-09 Thread Graham Cox
because it's a real nuisance for the user to have to keep refocusing the main content view when they just wanted to quickly activate a different layer. Subclassing is OK - I'm currently doing that anyway to hack around the row selection change on a checkbox click (When testing the s

Re: Another NSOutlineView question

2008-12-09 Thread Graham Cox
On 10 Dec 2008, at 11:21 am, Graham Cox wrote: I did also try the idea of using an "active" marker in a separate table column to indicate the active layer and that worked alright, but much less obvious and visible than using the selection highlight for this. It also added another column to

ImageAndTextCell + NSOutlineView editing problem

2009-01-14 Thread Andrew Shamel
Greetings Cocoa-Dev! I am having the hardest time with a persistent and strange error with Apple's ImageAndTextCell in my NSOutlineView. I have the ImageAndTextCell set to be the outline's data cell via NSTableColumn's -setDataCell: method, and I set the image of th

Re: Image in NSOutlineView

2008-08-29 Thread Ben Stiglitz
I'm trying to develop an application that uses an OutlineView in which it displays items like a disclosure triangle, then one checkbox, then a text field int the same column. For that I gone through the DragNDropOutlineview example provided with Xcode. Then I copied the ImageAndTextCell class

Re: Image in NSOutlineView

2008-08-29 Thread Corbin Dunn
You'll want to look at the PhotoSearch demo I presented at WWDC a few years ago. It shows how to do exactly what you are talking about (well, it is similar, but the concepts should be the same). http://developer.apple.com/samplecode/PhotoSearch/index.html corbin On Aug 29, 2008, at 5:08 AM,

Re: Image in NSOutlineView

2008-09-01 Thread chaitanya pandit
The right place to change the image of the cell would be in the outlineView's delegate method: - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell: (id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item try [[cell image] name] to get the name of the image -chai

Re: Image in NSOutlineView

2008-09-01 Thread chaitanya pandit
What you do is in the willdisplayCell method, check if the cell being displayed is for the selectd (clicked) row, if it is then change it's image else set the default image here is the code snippet for the same - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell: (id)cell forT

Re: Image in NSOutlineView

2008-09-02 Thread chaitanya pandit
ge What you do is in the willdisplayCell method, check if the cell being displayed is for the selectd (clicked) row, if it is then change it's image else set the default image here is the code snippet for the same - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell: (id)

Re: NSOutlineView developer example

2008-09-03 Thread Benjamin Stiglitz
Hi Guys, i tried to understand the NSOutlineView developer example which is in /Developer/Examples/AppKit/OutlineView. It simply shows the entire filesystem. I tried to alter it, so it shows any relative path of the filesystem, but whatever i do, it does not work. Does anybody have an idea

Re: NSOutlineView developer example

2008-09-03 Thread Boris Prohaska
16:49 schrieb Benjamin Stiglitz: Hi Guys, i tried to understand the NSOutlineView developer example which is in /Developer/Examples/AppKit/OutlineView. It simply shows the entire filesystem. I tried to alter it, so it shows any relative path of the filesystem, but whatever i do, it does not

Re: NSOutlineView developer example

2008-09-03 Thread Graham Cox
On 4 Sep 2008, at 3:42 am, Boris Prohaska wrote: but this still doesn't work Define "doesn't work". If you expect help you have to be a lot more precise. What errors did you get? What are the symptoms? What have you tried? Remember that no-one is as interested in this problem as you -

Re: NSOutlineView developer example

2008-09-04 Thread Boris Prohaska
Ok, so here we go. When i build and run the developer example "OutlineView" i get an OutlineView with one "/" element and a triangle next to it, so i can browse the whole filesystem. In FileSystemItem.m there is a method: + (FileSystemItem *)rootItem { if (rootItem == nil) rootItem = [[F

Re: NSOutlineView developer example

2008-09-04 Thread Marco Masser
so far so good. But when I change the "initWithPath" to "initWithPath:@"/Volumes/MyDisk/path/to/any/directory", as Ben said, i want the same behaviour like with the "/" only, but a tree from my path there. But this does not happen. Instead, i get a single row with the last path component

  1   2   3   4   5   >