[Adium-devl] Importer API
Peter Hosey
boredzo at gmail.com
Tue Apr 10 19:18:04 UTC 2007
On Apr 10, 2007, at 11:59:59, Graham Booker wrote:
> //These return false if they failed for some reason
> - (BOOL)importAccounts;
> - (BOOL)importStatus;
> //Note, the log import will take place in a thread.
> - (BOOL)importLogs;
I suggest returning NSError instead.
For that matter, it would be a good idea for the importer to have a
delegate that it notifies in the event of failure, particularly for
the log import. All three would return void and they would do so
immediately; if you care whether the import failed or not, you sign
up as delegate first.
The obvious implementation of such a delegate is to accept the
NSError and present it.
___________________________________
\ Peter Hosey / boredzo at adiumx.com
PGP public key ID: C6550423 (since 2007-01-01)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070410/0d333d75/attachment.sig>
More information about the devel
mailing list