Question about Outline View code in Documentation
Question about Outline View code in Documentation
- Subject: Question about Outline View code in Documentation
- From: James McConnell <email@hidden>
- Date: Fri, 06 Feb 2004 21:15:29 -0600
Greetings, all. In /Developer/Examples/AppKit/Outline View, the project has
a file for FileSystemItem, representing a file system item. It starts out
with this line:
static FileSystemItem *rootItem = nil;
It also has a method to set the file system item:
+ (FileSystemItem *)rootItem
{
if (rootItem == nil) rootItem = [[FileSystemItem alloc] initWithPath:@"/"
parent:nil];
return rootItem;
}
By default, it is set at "/". I would like this set to
"/Users/myuseraccount/Documents/folder", where "myuseraccount" is the
account this app will be running under (this app is only for my wife, so it
would be under her account), and "folder" would be a folder I would create
for my application. So I basically want to get the Outline View project to
run, showing the contents starting at the Documents directory in my wife's
account. I've tried several ways of changing the method so it uses that
directory, but it does not let me expand the directory to see the
subdirectories. Am I missing something? I can't see any other place in the
project where the rootItem variable is used/accessed. Any hints? Thanks.
James
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.