Mac OS X project with the printer driver and the cocoa client app
Mac OS X project with the printer driver and the cocoa client app
- Subject: Mac OS X project with the printer driver and the cocoa client app
- From: Bartosz Białecki <email@hidden>
- Date: Fri, 17 Feb 2012 15:08:44 +0100
I'm quite new Mac OS X programmer. I have to create a project and I'm not
sure what possibilites I have and what mechanism can I use. This is what I
need to do: I need a Cocoa app which send and receive some data (something
similar to the Mail app). I can send for example a pdf document from the
app and receive some data from the remote server. All data should be listed
in the app. I thought the best solution is to use a database to it. But
there must be also a possibility to create and send documents from another
apps (using print dialog), so I need a cups printer driver (exactly
backend). The problem is, that the backend program is sandboxed and I can't
save documents in the user home directory, but I need an access to that
documents from the my app. Another problem is, if I want to save any data
in the database from the backend and in the same time read or update or
etc. data from the app, the sqlite database can be blocked.
Question is, there is any possibility to communicate with the app from the
backend and send to it data with the document? If so, what can I use to it?
Can backend open my app if it is not opened? Where should I save a database
file (sqlite) to be available for every client apps opened by every system
user? The same question about any global configuration files etc.?
I thought about a one solution, but I'm not sure if that can work: there
should be a one background app and that app should have only access to the
database and only that app should send and receive data and notify all
client apps.The client apps should request the background app to retrieve a
list of data etc. The backend should also send a data with document to the
background program. Is it possible at all? What should I use to implement
that? Should I use a daemon or agent for background program? I thing agent
is the answer, because it needs to open a client app if it is closed and
for example ask the user for username and password I need to send and
receive data. What can I use to communication between all components?
I would appreciate for any help. Thanks.
--
Bartosz Białecki
_______________________________________________
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