• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Question about Outline View code in Documentation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Question about Outline View code in Documentation
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Correct way to insert an image into NSTextView.
  • Next by Date: Re: Question about Outline View code in Documentation
  • Previous by thread: Re: Correct way to insert an image into NSTextView.
  • Next by thread: Re: Question about Outline View code in Documentation
  • Index(es):
    • Date
    • Thread