(no subject)
(no subject)
- Subject: (no subject)
- From: email@hidden
- Date: Thu, 02 Aug 2007 23:20:47 +0200
Hi, I'm trying to create a Core-Data Document-Based Application. The goal of
this application is to manage a basic file system (Folders -> sub folders ->
Files) like a pictures album linked with a database.
My data base uses three entities (very basic) :
Album with a name, a directory and a creation date,
SubFolder with a directory and a name,
Picture with a name.
An album could have subFolders, and subFolders could have pictures.
My question is : how automatically create folders in my FileSystem (Album,sub
folder) when I insert,create a Folder in my data base ???
I'm trying to create a subclass of NSManagedObject and the function
-(void)awakeFromInsert like this :
-(void)awakeFromInsert
{
[self createFolderInPath:@"/Users/MyAccount/" withName:@"MyFolder"]] ;
[self setValue:@"/Users/MyAccount/" forKey:@"directory"] ;
}
but what happens when a folder already email@hidden with this
name ??? how to return an error ???
I'm learning Objective-c and cocoa for 1 month so excuse me if my questions are
stupid, thanks.
_______________________________________________
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