• 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
RE: Programatically identifying bundles and frameworks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Programatically identifying bundles and frameworks?


  • Subject: RE: Programatically identifying bundles and frameworks?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Wed, 17 Oct 2007 17:11:09 -0400
  • Thread-topic: Programatically identifying bundles and frameworks?

OK, that looks like a good start.  Douglas Davidson pointed out that
anything on the system can be a bundle, which is what I was worried
about, and I. Savant pointed out that I could look for extensions of
names (something that I am doing, but feels like a real hack), but since
this is what I've got, its what I'll go with.

Hmmmm... I guess I should write up a bug report + use case for this, but
before I bog down the Apple engineers with a request for something that
only I may end up using, are there any others that need the ability to
identify if a directory is actually a bundle/framework/package/some
other 'atomic' object?

Thanks!
Cem Karan

-----Original Message-----
From: Ricky Sharp [mailto:email@hidden]
Sent: Wednesday, October 17, 2007 4:22 PM
To: Karan, Cem (Civ, ARL/CISD)
Cc: email@hidden
Subject: Re: Programatically identifying bundles and frameworks?


On Oct 17, 2007, at 3:19 PM, Karan, Cem (Civ, ARL/CISD) wrote:

> Hi all, I am working on an application that is designed to help a user

> clean up their disk space by identifying identical and near-identical
> files (in case they've decided to make backups, and forgot that they
> had).  The only problem I'm running into is handling bundles and
> frameworks; I want to be able to identify that I'm walking into a
> bundle or framework, and treat the entire thing as a single unit.  Is
> there a programmatic way of doing this, something along the lines of
> +(Bool) isBundle:(NSString *) canonicalPathToDirectory;?

Check out NSWorkspace's isFilePackageAtPath:

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Programatically identifying bundles and frameworks? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >Re: Programatically identifying bundles and frameworks? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Basic Window Operation misunderstanding?
  • Next by Date: revisiting NSTableView 'on drag' row highlighting
  • Previous by thread: Re: Programatically identifying bundles and frameworks?
  • Next by thread: Re: Programatically identifying bundles and frameworks?
  • Index(es):
    • Date
    • Thread