• 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: Folder has limited permissions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder has limited permissions.


  • Subject: Re: Folder has limited permissions.
  • From: Macarov Anatoli <email@hidden>
  • Date: Mon, 28 Jul 2008 00:46:50 -0700 (PDT)

This is my code, I would give you an example.In documentation on authopen command-w writes data in file, but I can't do it.


On 27 Jul 08, at 02:19, Macarov Anatoli wrote:
> HI Andrew Farmer,
> This is my cod:
>
>      NSString *command =@"/usr/libexec/authopen" ;
>      NSArray *args = [NSArray
arrayWithObjects:@"-w",@"/etc/
> tolea.txt",nil];
>      NSTask *task = [[NSTask alloc] init];
>      NSPipe *newPipe = [NSPipe pipe];
>      NSFileHandle *readHandle = [newPipe fileHandleForReading];
>      NSData *inData;
>      NSString *tempString;
>      [task setLaunchPath:command];
>      [task setArguments:args];
>      [task setStandardOutput:newPipe];
>
 [task setStandardError:newPipe];
>      [task launch];
>      inData = [readHandle readDataToEndOfFile];
>      tempString = [[NSString alloc] initWithData:inData
> encoding:NSASCIIStringEncoding];
>      [task release];
>
> I can't record data in the file. How to correctly do it?

Er... it might help if you tried to write some data to the file?
Copying and pasting other people's code will only get you so far if
you don't understand it.




      ________________________________________________________
Вы уже с Yahoo!?
Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.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

  • Follow-Ups:
    • Re: Folder has limited permissions.
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: IB not recognizing class hierarchy
  • Next by Date: Re: Folder has limited permissions.
  • Previous by thread: Re: Folder has limited permissions.
  • Next by thread: Re: Folder has limited permissions.
  • Index(es):
    • Date
    • Thread