FROM : Adam R. Maxwell
DATE : Sun Jan 20 20:28:54 2008
On Jan 20, 2008, at 11:15 AM, John Stiles wrote:
> These look like filenames, not full paths. You can't supply a
> partial path here.
Yes, you can supply partial paths. See -[NSFileManager
currentDirectoryPath].
adam
>
>
>
> Simone Tessaro wrote:
>> Hi,
>> i've a question. I'm trying to write some code that make a filename
>> in
>> uppercase. i wrote a thing like that:
>> [defaultManager movePath:@"foo.txt" toPath:@"FOO.txt" handler:nil];
>>
>> this code doesn't work because cocoa seems to be case-sensitive and
>> this method is useless for my pourpose. So, i need a method like the
>> unix mv, in fact if i use the command mv foo.txt FOO.txt , everything
>> is allright.
>> Someone have a smart idea to do this? Or i need to use two renaming?
>> Like this (a very bad idea):
>> [defaultManager movePath:@"foo.txt" toPath:@"temp.txt" handler:nil];
>> [defaultManager movePath:@"temp.txt" toPath:@"FOO.txt" handler:nil];
>>
>> Thanks
>>
>> Simo
>> _______________________________________________
>>
>> Cocoa-dev mailing list (<email_removed>)
>>
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Sun Jan 20 20:28:54 2008
On Jan 20, 2008, at 11:15 AM, John Stiles wrote:
> These look like filenames, not full paths. You can't supply a
> partial path here.
Yes, you can supply partial paths. See -[NSFileManager
currentDirectoryPath].
adam
>
>
>
> Simone Tessaro wrote:
>> Hi,
>> i've a question. I'm trying to write some code that make a filename
>> in
>> uppercase. i wrote a thing like that:
>> [defaultManager movePath:@"foo.txt" toPath:@"FOO.txt" handler:nil];
>>
>> this code doesn't work because cocoa seems to be case-sensitive and
>> this method is useless for my pourpose. So, i need a method like the
>> unix mv, in fact if i use the command mv foo.txt FOO.txt , everything
>> is allright.
>> Someone have a smart idea to do this? Or i need to use two renaming?
>> Like this (a very bad idea):
>> [defaultManager movePath:@"foo.txt" toPath:@"temp.txt" handler:nil];
>> [defaultManager movePath:@"temp.txt" toPath:@"FOO.txt" handler:nil];
>>
>> Thanks
>>
>> Simo
>> _______________________________________________
>>
>> Cocoa-dev mailing list (<email_removed>)
>>
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>>
>> This email sent to <email_removed>
>>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Simone Tessaro | Jan 20, 18:36 | |
| Mike Abdullah | Jan 20, 18:57 | |
| John Stiles | Jan 20, 20:15 | |
| Simone Tessaro | Jan 20, 20:21 | |
| Simone Tessaro | Jan 20, 20:27 | |
| Adam R. Maxwell | Jan 20, 20:28 | |
| John Stiles | Jan 20, 21:54 | |
| Gerd Knops | Jan 21, 00:37 | |
| Chris Suter | Jan 21, 00:39 | |
| Rosyna | Jan 21, 01:09 | |
| Simone Tessaro | Jan 21, 02:03 | |
| Rosyna | Jan 21, 02:45 | |
| Simone Tessaro | Jan 21, 10:42 |






Cocoa mail archive

