Re: Reading Adobe Photoshop header, Obj-C

2011-06-28 Thread Francis Devereux
On 28 Jun 2011, at 18:00, Jens Alfke wrote: > Another way (that I often use) is to define a C struct that matches the > fields and layout of the header, then cast the bytes to a pointer to that > struct and read the fields. It makes your code look a lot cleaner, but you > have to be careful to

Re: Problem connecting to Oracle with app run from XCode

2010-10-06 Thread Francis Devereux
On 6 Oct 2010, at 00:07, Timothy Mowlem wrote: > Hello, > > I am trying to get OCILib (http://orclib.sourceforge.net/), a free Oracle > library, running on MacOSX. I have built the library from source and > successfully run a test class via the terminal containing the example code in > the OCI

Re: DADiskMount usage

2009-11-29 Thread Francis Devereux
On 29 Nov 2009, at 11:12, Zephyroth Akash wrote: > Hi, > > I need some help to understand what the user-defined context is. The context is simply a value that will be passed to your callback function (mountApprovalCallback() in the code you posted). You can just pass nil (which will cause nil

Re: Mac Pro and iMac

2009-08-18 Thread Francis Devereux
On 18 Aug 2009, at 09:54, XiaoGang Li wrote: Hi, List, I know that this is not the suitable list to ask this kind of question, but I really do not know where to post it. Thanks for your allowance. Try the macosx-talk list - http://www.omnigroup.com/mailman/listinfo/macosx-talk Francis _

Re: Encoding to use for file names

2009-02-05 Thread Francis Devereux
On 5 Feb 2009, at 17:40, Joar Wingfors wrote: On Feb 5, 2009, at 9:29 AM, Francis Devereux wrote: I am porting an app to Mac OS X (well, actually someone else has ported it and I am building a cocoa GUI). I have an NSString with a filename in it that I need to pass to the portable code

Encoding to use for file names

2009-02-05 Thread Francis Devereux
Hi, I am porting an app to Mac OS X (well, actually someone else has ported it and I am building a cocoa GUI). I have an NSString with a filename in it that I need to pass to the portable code as a char *. The portable code will then pass it to UNIX file handling functions like fopen().

Re: Finding out that a volume is going away before it does

2008-10-28 Thread Francis Devereux
On 28 Oct 2008, at 05:26, Chris Suter wrote: On Tue, Oct 28, 2008 at 1:50 AM, Francis Devereux <[EMAIL PROTECTED]> wrote: My code works on 10.4 8A428 PPC (after I changed mainRunLoop to currentRunLoop), but this probably isn't much help to you because DiskArbitration.framework

Re: Finding out that a volume is going away before it does

2008-10-27 Thread Francis Devereux
On 27 Oct 2008, at 13:42, Gregory Weston wrote: On Oct 27, 2008, at 9:31 AM, Francis Devereux wrote: On 26 Oct 2008, at 16:37, Gregory Weston wrote: Amusingly, when you register an unmount or eject approval function with DiskArbitration, that function gets invoked *after* NSWorkspace

Re: Finding out that a volume is going away before it does

2008-10-27 Thread Francis Devereux
On 26 Oct 2008, at 16:37, Gregory Weston wrote: Amusingly, when you register an unmount or eject approval function with DiskArbitration, that function gets invoked *after* NSWorkspace sends its didUnmount notification. How's that for a lead-in anecdote? So anyway, I'm looking to react to th