Discussion:
Packages vs Folders
David Cox
2007-01-26 10:19:56 UTC
Permalink
Following the discussion on identifying invisible files, currently
Finder packages (e.g. Keynote, Pages & iMove documents) show up as
folders in their folderitem attributes. I cannot see any attribute
for 'package' in RB.

If I am presenting the user with a list of documents in a folderitem,
how can I determine if a 'folder' is actually a package?
Jonathan Johnson
2007-01-26 13:33:41 UTC
Permalink
Post by David Cox
Following the discussion on identifying invisible files, currently
Finder packages (e.g. Keynote, Pages & iMove documents) show up as
folders in their folderitem attributes. I cannot see any attribute
for 'package' in RB.
If I am presenting the user with a list of documents in a
folderitem, how can I determine if a 'folder' is actually a package?
Funny, I answered this question on the forums yesterday, complete
with code :)

<http://forums.realsoftware.com/viewtopic.php?t=10803>

HTH,
Jon
--
Jonathan Johnson
***@realsoftware.com
REAL Software, Inc.

REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>
David Cox
2007-01-27 13:21:54 UTC
Permalink
Thank you!

On 26/01/2007, at 6:00 PM, gettingstarted-
Message: 7
Subject: Re: Packages vs Folders
Date: Fri, 26 Jan 2007 07:33:41 -0600
Post by David Cox
Following the discussion on identifying invisible files, currently
Finder packages (e.g. Keynote, Pages & iMove documents) show up as
folders in their folderitem attributes. I cannot see any attribute
for 'package' in RB.
If I am presenting the user with a list of documents in a
folderitem, how can I determine if a 'folder' is actually a package?
Funny, I answered this question on the forums yesterday, complete
with code :)
<http://forums.realsoftware.com/viewtopic.php?t=10803>
HTH,
Jon
Octave Julien
2007-01-27 17:42:46 UTC
Permalink
Hi,

I'd like to have a menu listing the open documents in my app, but I'm
not sure how to do that.
I think I understand how to use a control array so that individual menu
items are created on the fly when I create or open a new document. I
guess I should use the code of the original, hidden menu item to change
the active document, so that all new menu items can do the same when
selected by the user. But how to identify which document to activate ?
As far as I know, menu items have no properties. So I can't attach a
reference to a particular document to it. And the menu item's title is
not enough, as soon as several documents have the same name.
Any idea about how to solve that ?

Octave
Norman Palardy
2007-01-27 17:55:28 UTC
Permalink
Post by Octave Julien
Hi,
I'd like to have a menu listing the open documents in my app, but
I'm not sure how to do that.
I think I understand how to use a control array so that individual
menu items are created on the fly when I create or open a new
document. I guess I should use the code of the original, hidden
menu item to change the active document, so that all new menu items
can do the same when selected by the user. But how to identify
which document to activate ? As far as I know, menu items have no
properties. So I can't attach a reference to a particular document
to it. And the menu item's title is not enough, as soon as several
documents have the same name.
Any idea about how to solve that ?
Use a custom subclass of menuitem that you create and add whatever
properties you need (like a folderitem)

Loading...