On Aug 27, 2012, at 12:43 PM, David Duncan wrote:
> On Aug 27, 2012, at 9:50 AM, Sean McBride wrote:
>
>> On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>>
>const UInt8 *cpath = (const UInt8 *)[path
>>> cStringUsingEncoding:NSUTF8StringEncoding];
-UTF8String is shorte
On Aug 27, 2012, at 9:50 AM, Sean McBride wrote:
> On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>
const UInt8 *cpath = (const UInt8 *)[path
>> cStringUsingEncoding:NSUTF8StringEncoding];
>>>
>>> -UTF8String is shorter.
>>
>> Both of these are wrong, though. You should *alway
On Sat, 25 Aug 2012 17:58:39 +0200, Uli Kusterer said:
>>> const UInt8 *cpath = (const UInt8 *)[path
>cStringUsingEncoding:NSUTF8StringEncoding];
>>
>> -UTF8String is shorter.
>
> Both of these are wrong, though. You should *always* use -
>fileSystemRepresentation when you need a C-string re
On Aug 25, 2012, at 7:03 AM, Jens Alfke wrote:
> On Aug 24, 2012, at 8:59 PM, koko wrote:
>> const UInt8 *cpath = (const UInt8 *)[path
>> cStringUsingEncoding:NSUTF8StringEncoding];
>
> -UTF8String is shorter.
Both of these are wrong, though. You should *always* use
-fileSystemRepresent
On Aug 25, 2012, at 4:26 AM, Mike Abdullah wrote:
> On 25 Aug 2012, at 06:03 AM, Jens Alfke wrote:
>
>>
>> On Aug 24, 2012, at 8:59 PM, koko wrote:
>>
>>> Excellent … much easier than
>>
>> Well, in Carbon's defense, you're making things a lot harder than they have
>> to be:
>>
>>>
On 25 Aug 2012, at 06:03 AM, Jens Alfke wrote:
>
> On Aug 24, 2012, at 8:59 PM, koko wrote:
>
>> Excellent … much easier than
>
> Well, in Carbon's defense, you're making things a lot harder than they have
> to be:
>
>> if(m_FSRef) free((void*)m_FSRef);
>> m_FSRef = malloc(si
A nice tutorial … thanks!
-koko
On Aug 24, 2012, at 9:59 PM, koko wrote:
> Excellent … much easier than
>
> make a FSRef
>
>if(m_FSRef) free((void*)m_FSRef);
>m_FSRef = malloc(sizeof(FSRef));
>memset(m_FSRef,0x00,sizeof(FSRef));
>const UInt8 *cpath = (const UIn
On Aug 24, 2012, at 8:59 PM, koko wrote:
> Excellent … much easier than
Well, in Carbon's defense, you're making things a lot harder than they have to
be:
>if(m_FSRef) free((void*)m_FSRef);
>m_FSRef = malloc(sizeof(FSRef));
FSRefs don't have to be allocated on the heap. They
Excellent … much easier than
make a FSRef
if(m_FSRef) free((void*)m_FSRef);
m_FSRef = malloc(sizeof(FSRef));
memset(m_FSRef,0x00,sizeof(FSRef));
const UInt8 *cpath = (const UInt8 *)[path
cStringUsingEncoding:NSUTF8StringEncoding];
OSStatus osStatus = FSPa
koko wrote:
I forgot to add that the deployment target is 10.4 … which is why
I asked …
Look at NSFileManager's deprecated methods, and find
changeFileAttributes:atPath: .
-- GG
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Plea
On Aug 24, 2012, at 4:03 PM, Kyle Sluder wrote:
> FSSetCatalogInfo
JUst did a cursory inspection of FSSetCatalogInfo … looks like the ticket.
Thanks Kyle, I'll post my results for others and verification.
-koko
___
Cocoa-dev mailing list (Cocoa-dev
On Fri, Aug 24, 2012, at 02:35 PM, koko wrote:
>
> On Aug 24, 2012, at 2:02 PM, Kyle Sluder wrote:
>
> > You want -[NSFileManager setAttributes:ofItemAtPath:error:] in
> > combination with NSFileHFSTypeCode.
>
> I forgot to add that the deployment target is 10.4 … which is why I
> asked …
Use
koko asked:
I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older program needs to use the file and it OS8 Open filters on TYPE.
I have looked at a number of FSSpec and FSRef but have had no success.
If anyone has done this successfully I would sure like to hear about it
On Aug 24, 2012, at 2:02 PM, Kyle Sluder wrote:
> You want -[NSFileManager setAttributes:ofItemAtPath:error:] in
> combination with NSFileHFSTypeCode.
I forgot to add that the deployment target is 10.4 … which is why I asked …
-koko
___
Cocoa-dev ma
On Fri, Aug 24, 2012, at 11:05 AM, koko wrote:
> I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older
> program needs to use the file and it OS8 Open filters on TYPE.
>
> I have looked at a number of FSSpec and FSRef but have had no success.
>
> If anyone has done this succe
I need to set a file's TYPE in the ancient FinderInfo to TEXT as an older
program needs to use the file and it OS8 Open filters on TYPE.
I have looked at a number of FSSpec and FSRef but have had no success.
If anyone has done this successfully I would sure like to hear about it.
-koko
__
16 matches
Mail list logo