How add app in startup item (global log in item)?

2010-09-23 Thread Macarov Anatoli
kLSSharedFileListGlobalLoginItems. When add new item with function LSSharedFileListInsertItemURL, return LSSharedFileListItemRef item = 1. This is the correct code? Sorry for my english. Macarov Anatoli , www.mas.do.am - iCtrlClip ___ Cocoa-dev mailing list

Re: Write to file.

2008-12-24 Thread Macarov Anatoli
Thank you for your reply and for directory /tmp. Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Write to file.

2008-12-23 Thread Macarov Anatoli
CFPreferences doesn't work. My bundle works in login window under user account securityagent. Can I somehow with the user's rights create file? Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo

Write to file.

2008-12-16 Thread Macarov Anatoli
I have admin rights. But I can't use NSUserDefaults because upon starting  system in login window I'm not in user account, and there the function doesn't work.. After authorization and login in user account the function will work because detects what user account you work from.

Write to file.

2008-12-15 Thread Macarov Anatoli
I have got my own bundle that I insert into login window. When login window is started up  the bundle  writes necessary parametr into file which is situated  in /Library/Preferences/. I try to write in the following way: NSString *Value;        NSDictionary *theDict = [NSDictionary dictionaryWit

PAM module

2008-12-10 Thread Macarov Anatoli
How to compile a PAM module? Where to download libpam-dev or files pam_appl.h, libpam.so? I'd like to get PAM module from yubico-pam.c, here what I'm guided by:http://code.google.com/p/yubico-pam/wiki/ReadMe. This is error when compiling: "configure: error: PAM header files not found, install libp

Re: How to get notification of rerun application

2008-11-26 Thread Macarov Anatoli
Example: http://www.cocoabuilder.com/archive/message/cocoa/2001/7/8/41850 - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag {     NSBeep();     NSLog(@"Hi");     return YES; } And in awakeFromNib in the same class [NSApp setDelegate:self];

Re: How to get notification of rerun application

2008-11-20 Thread Macarov Anatoli
I found this function. But it doesn't respond to reopen application. I just declare it in class MainMenu.nib. This is my code: - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag {     NSLog(@"Reopen");     return YES; } or I should create notificat

Re: How to get notification of rerun application

2008-11-19 Thread Macarov Anatoli
No. The program starts up automatically upon system logon, and the icon appears in the system tray (near clock). A user may not notice the icon , thus he/she starts the program manually, and then pops up program's main window. Вы у

How to get notification of rerun application

2008-11-18 Thread Macarov Anatoli
How to get notification of  rerun application that is namely being started from the icon? Because the program is automatically started upon OS login. Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail

Bluetooth disconnect WiFi

2008-09-04 Thread Macarov Anatoli
I have PowerBook G4 and PowerPC. In Xcode and Obj - C, I use IOBluetooth.framework. Why when bluetooth is working WIFI connection is interrupted, and sometimes quits working. May be both devices use one and the same antenna or use the same frequency? Is there a way out?   __

Modal window

2008-08-25 Thread Macarov Anatoli
When modal window is started up the application stops carrying out other processes. How to work out this issue? Cod: - (void)showCustomDialog: (NSWindow *)window widi:(NSPanel *)windowDialog {     if (!windowDialog)     [NSBundle loadNibNamed: @"MyCustomDialog" owner: self];     [NSApp beginS

How to check the capital letter?

2008-08-11 Thread Macarov Anatoli
HI! Cocoa, Obj-C. How to check the capital letter? Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Authenticate Password.

2008-07-29 Thread Macarov Anatoli
My program requests user's password for further work. Tha's why I'd like to check password, if the user has entered it correctly. And for this I use Authorization Service. On Mon, Jul 28, 2008 at 7:24 AM, Macarov Anatoli <[EMAIL PROTECTED]> wrote: > With the help o

Authenticate Password.

2008-07-28 Thread Macarov Anatoli
HI!!! Cocoa, Obj-C. With the help of this procedure I check whether the password has been entered correctly. But the code works only for the user with admins rights. How do I check the password being a standard user? Cod: -(BOOL) authenticatePassword:(NSString *)password :(NSString *)userName {

Re: Folder has limited permissions.

2008-07-28 Thread Macarov Anatoli
   Problem solved.    Cod work:     NSPipe *writePipe = [NSPipe pipe];     NSFileHandle *writeHandle = [writePipe fileHandleForWriting];     NSTask *task = [[NSTask alloc] init];     NSString *command = @"/usr/libexec/authopen";     NSArray *args = [NSArray arrayWithObjects:@"-w",@"/etc/tolea.txt"

Re: Folder has limited permissions.

2008-07-28 Thread Macarov Anatoli
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&q

Re: Folder has limited permissions.

2008-07-25 Thread Macarov Anatoli
When user has a standard account (not administrator), he/she doesn't have rights to create a file in the Directory /Applications/. I try to create a file with the help of function authopen. This code doesn't work: FILE *pFile = popen("/usr/libexec/authopen -stdoutpipe sys.openfile.readwritecre

Re: Folder has limited permissions.

2008-07-24 Thread Macarov Anatoli
Someone has an example with authorization services.Le 24 juil. 08 à 14:24, Macarov Anatoli a écrit : > HI! > Cocoa, Obj-c. > How to creat a file in the folder that has limited permissions (read- > only)? > Give me example, please. You can use NSTask and /usr/libexec/authopen (

Folder has limited permissions.

2008-07-24 Thread Macarov Anatoli
HI! Cocoa, Obj-c. How to creat a file in the folder that has limited permissions (read-only)? Give me example, please. Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com _