Ask a Question related to Mac Programming, Design and Development.
-
Eric Raas #1
Allow openPanel to choose folders in Cocoa document-based application?
I am trying to figure out the best way to force the open panel of a
Cocoa document-based application to allow selection of folders. In some
situations the document model I use can be constructed from the contents
of a Folder, and I would like to allow users to select a folder.
Validation of the contents (to see if they in fact form a document)
would be done in an NSDocument subclass method.
I realize I could subclass NSDocumentController, and implement my own
version of openDocument, but am wondering if this is the best way (seems
a lot to subclass a major class just to override one GUI default).
Thanks for any suggestions,
ER
Eric Raas Guest
-
Accessing files/folders inside other application folders
How can I have an asc file from one application read text files in another applications directory? I have multiple applications creating text... -
web-based application question
Hi, I have a perl script that I would like to make available on-line. I suspect the target community (microbiologists) has no interest in... -
beginner question document based application
I've got a document based Cocoa application, and I would like to have a single NSPanel which shows certain stuff about the current document. I... -
OT: (Web-based) Document Management Systems
** Apologies for the cross-posting; I thought it better than multi-posting 3 differing msgs to 3 NGs. We're introducing a new project management... -
multiple document and window types in cocoa
In <210720030631331455%none@none.com> None wrote: Use the existing document framework. Let the AppKit do the work. You don't need to store... -
Eric Pepke #2
Re: Allow openPanel to choose folders in Cocoa document-based application?
Eric Raas <foo@bar.net> wrote in message news:<20030918141918883-0400@nntp.mgh.harvard.edu>...
[openPanel setCanChooseDirectories:YES];> I am trying to figure out the best way to force the open panel of a
> Cocoa document-based application to allow selection of folders. In some
> situations the document model I use can be constructed from the contents
> of a Folder, and I would like to allow users to select a folder.
> Validation of the contents (to see if they in fact form a document)
> would be done in an NSDocument subclass method.
assuming that openPanel is your openPanel.
Eric Pepke Guest
-
Eric Raas #3
Re: Allow openPanel to choose folders in Cocoa document-basedapplication?
In <ef37f531.0309201842.1de8450@posting.google.com> Eric Pepke wrote:
Thanks - I have used setCanChooseDirectories:YES in the past when I have> Eric Raas <foo@bar.net> wrote in message news:<20030918141918883-0400@
> nntp.mgh.harvard.edu>...>>> I am trying to figure out the best way to force the open panel of a
>> Cocoa document-based application to allow selection of folders. In
>> some situations the document model I use can be constructed from the
>> contents of a Folder, and I would like to allow users to select a
>> folder. Validation of the contents (to see if they in fact form a
>> document) would be done in an NSDocument subclass method.
> [openPanel setCanChooseDirectories:YES];
>
> assuming that openPanel is your openPanel.
>
launched an openPanel outside of the Cocoa document framework. What I
am wondering is where this operation should go in a Document-based app (
in an NSDocument method? in an override of NSDocumentController?)
ER
Eric Raas Guest
-
Eric Pepke #4
Re: Allow openPanel to choose folders in Cocoa document-based application?
Eric Raas <foo@bar.net> wrote in message news:<20030921104429426-0400@news.verizon.net>...
TIMTOWTDI, but I put it in a custom subclass NSDocumentController,> Thanks - I have used setCanChooseDirectories:YES in the past when I have
> launched an openPanel outside of the Cocoa document framework. What I
> am wondering is where this operation should go in a Document-based app (
> in an NSDocument method? in an override of NSDocumentController?)
which I just put in the main nib file. The system seems magically
to know to use that one.
Eric Pepke Guest
-
Tom Harrington #5
Re: Allow openPanel to choose folders in Cocoa document-based application?
In article <ef37f531.0309221906.7f987624@posting.google.com >,
[email]epepke@acm.org[/email] (Eric Pepke) wrote:
What does "TIMTOWTDI" mean? I've seen a lot of this kind of> Eric Raas <foo@bar.net> wrote in message
> news:<20030921104429426-0400@news.verizon.net>...>> > Thanks - I have used setCanChooseDirectories:YES in the past when I have
> > launched an openPanel outside of the Cocoa document framework. What I
> > am wondering is where this operation should go in a Document-based app (
> > in an NSDocument method? in an override of NSDocumentController?)
> TIMTOWTDI, but I put it in a custom subclass NSDocumentController,
> which I just put in the main nib file. The system seems magically
> to know to use that one.
abbreviation, but this one's new on me.
--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See [url]http://www.atomicbird.com/[/url]
Tom Harrington Guest
-
matt neuburg #6
Re: Allow openPanel to choose folders in Cocoa document-based application?
Tom Harrington <tph@pcisys.no.spam.dammit.net> wrote:
You could easily learn what this abbreviation means just by typing it> What does "TIMTOWTDI" mean? I've seen a lot of this kind of
> abbreviation, but this one's new on me
into Google. Not that you'd have to use Google particularly; there is
more than one way to do it, I'm certain. Heck, just reading this note
carefully might tell you the answer. One way or another, though, wasting
bandwidth here is just utterly needless. m.
--
matt neuburg, phd = [email]matt@tidbits.com[/email], [url]http://www.tidbits.com/matt/[/url]
Read TidBITS! It's free and smart. [url]http://www.tidbits.com[/url]
matt neuburg Guest



Reply With Quote

