• 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
Addressbook framework without a regular user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Addressbook framework without a regular user


  • Subject: Addressbook framework without a regular user
  • From: Karl Kuehn <email@hidden>
  • Date: Sun, 5 Jan 2003 12:59:22 -0500

I am trying to write a small program that I want to run as a daemon process that uses the Addressbook.framework. When I run it as a general test (from within PB.. so a regular, logged-in user) things run fine. I can get the shared addressbook and view users. But if I try and run it under daemon users (say... 'nobody') I get an error when I try and '[ABAddressBook sharedAddressBook]'. I am not trying to touch the 'me' object at all, but I think that the framework breaks when it tries to set that up for me. I can setuid to get around the problem for now, but I don't like that as a solution.

For the record, the errors are:

ABAddressBook could not aquireLock: writeLock error No such file or directory: 'Framework/AddressBook/ABAddressBook.m' line: 1396

-[ABAddressBook _initDefaultContactManager] Can't _acquireLock Framework/AddressBook/ABAddressBook.m:1403

Anyone got any ideas?

Karl Kuehn
email@hidden

PS.. I don't know if my setuid solution works when I am not logged in completely (as in have the windowserver).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Addressbook framework without a regular user
      • From: Vince DeMarco <email@hidden>
    • Re: Addressbook framework without a regular user
      • From: Barry Books <email@hidden>
    • Re: Addressbook framework without a regular user
      • From: Henri Lamiraux <email@hidden>
  • Prev by Date: Re: Checking OS Version with Cocoa
  • Next by Date: Re: Quickly drawing non-antialiased, discrete, pixels
  • Previous by thread: Re: ScreenSaverView in own application
  • Next by thread: Re: Addressbook framework without a regular user
  • Index(es):
    • Date
    • Thread