Re: Error for FSReadFork
Re: Error for FSReadFork
- Subject: Re: Error for FSReadFork
- From: Marshall Clow <email@hidden>
- Date: Thu, 26 Jun 2008 22:50:20 -0700
At 10:37 AM +0530 6/27/08, pallavi khutal wrote:
Hello Marshall ,
Thanks for reply.
Yes that is wrong.
flag = CFURLGetFSRef((CFURLRef)url , &ref);
result = FSGetDataForkName(&dataForkName);
result = FSOpenFork(&ref, dataForkName.length, dataForkName.unicode,
fsRdPerm, &forkRefNum);
if (result == noErr)
{
result = FSGetForkSize(forkRefNum, &forkSize);
if(result !== noErr)
{
//some code
}
else if (result == noErr) //this is another condition for reading.
{
Err1= FSReadFork(forkRefNum,fsFromStart,0,
forkSize,&forkData, &actualCount);
//here Err1 returns 0 means successfull
}
But I could not understand that how should I read the data if sie
written is logical size
Are you sure that FSReadFork is actually getting called?
You might try initializing Err1 to some known value [ say -36
(bummers) ], and see what happens.
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden