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
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
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
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
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
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
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
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:
>>>
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
"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
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
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
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
>
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
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?
>
>
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
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
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
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
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
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
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
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
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
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
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?
__
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
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
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
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
{
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
=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
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
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
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
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
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
.
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
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
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
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
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
)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
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
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
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
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
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,
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
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
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)
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
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
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 -
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
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 - 100 of 489 matches
Mail list logo