Re: ActiveRecord on Cocoa

2008-11-11 Thread Colin Barrett
You might want to check out OmniDataObject from the OmniGroup. It works on both the Mac and iPhone and is used in both OmniFocus Mac and OmniFocus iPhone http://www.omnigroup.com/developer/ -Colin On Tue, Nov 11, 2008 at 2:47 AM, malcom <[EMAIL PROTECTED]> wrote: > Hello List, > I'm searching fo

Re: runModalSession in Cocoa plugin for Carbon app does not return

2008-11-09 Thread Colin Barrett
What exactly do you mean by "Cocoa plug-in application"? -Colin On Sun, Nov 9, 2008 at 1:58 AM, Alexander Shmelev <[EMAIL PROTECTED]> wrote: > Hello, > > I have following code in my Cocoa plug-in application: > > NSModalSession session = [NSApp beginModalSessionForWindow:theWindow]; > for (;;) {

Re: How to read proxy username and password?

2008-10-31 Thread Colin Barrett
Is it possible they're stored in Keychain? -Colin On Fri, Oct 31, 2008 at 4:09 PM, Mark Allan <[EMAIL PROTECTED]> wrote: > Hi all, > > I've got an application which uses a third party command line tool to > download some files from the web. Unfortunately, the command line tool won't > work wit

Re: NSOperationQueue broken?

2008-10-30 Thread Colin Barrett
On Thu, Oct 30, 2008 at 5:30 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > Based on the state of the program when it crashes, it appears that the > problem is caused by a race condition which occasionally causes two of > the worker threads that NSOperationQueue spawns to dequeue and execute > the sa

Re: When and how often do you mix C++ with Objective C in your project?

2008-10-30 Thread Colin Barrett
On Thu, Oct 30, 2008 at 4:33 PM, Boon Chew <[EMAIL PROTECTED]> wrote: > Hi all, > > I am a newbie to the cocoa world (PC -> Mac switcher). I have a fair amount > of experience coding in C and C++ and I am just getting into Obj C now. > Right now I am trying to learn the language idioms and patt

Re: Parsing xml files in Cocoa applications

2008-10-30 Thread Colin Barrett
There's not one but two XML parsers built right in (NSXMLPaser, NSXMLDocument & friends), and there's also any number of C libraries (expat, libxml, etc). If for some bizarre you reason you need to parse XML files backwards, there's http://boredzo.org/lmx/. On Wed, Oct 29, 2008 at 2:28 AM, Arnab

Re: Can we ask iPhone questions yet?

2008-10-28 Thread Colin Barrett
On Tue, Oct 28, 2008 at 1:27 AM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > IMO that does not really answer the question :) You are legally able to yes, assuming you have accepted the new NDA. However, as I understand it, your post would be off topic, as the correct place to post such questions i

Re: NSNull and @""

2008-10-10 Thread Colin Barrett
On Fri, Oct 10, 2008 at 3:20 PM, DKJ <[EMAIL PROTECTED]> wrote: > I've made an NSDictionary where the values are strings. Is there a > difference between setting a value as [NSNull null] and setting it as @""? > (I've been using the former.) It's up to you. Unlike other languages, Cocoa dictionari

Re: Wasted Space and Kernighan

2008-10-07 Thread Colin Barrett
On Tue, Oct 7, 2008 at 7:30 AM, Bill Mutch <[EMAIL PROTECTED]> wrote: > Even a general conclusion is not valid unless by 'clever' he means > intentionally obtuse. I'm willing to give bwk the benefit of the doubt. I assumed he was giving a warning against cleverness for cleverness's sake, which is

Re: Invoking 'a Paste' Programmatically

2008-10-06 Thread Colin Barrett
On Sun, Oct 5, 2008 at 8:42 PM, Joshua Brickner <[EMAIL PROTECTED]> wrote: > I'm wondering if there is a way to programmatically call 'Paste' If you're running in the process of the foreground app, you could do something along the lines of: [[[NSApp mainWindow] firstResponder] paste:nil]; You co

Re: file fixtures for unit testing

2008-10-04 Thread Colin Barrett
On Fri, Oct 3, 2008 at 10:01 PM, Brent Hargrave <[EMAIL PROTECTED]> wrote: > To unit test an XML parsing method, I would like keep a dummy XML file in a > project directory and import it into my FooTests class as a fixture of > sorts. What is the right way to do this sort of thing? Add it to the

PubSub not downloading image enclosures automatically.

2008-09-30 Thread Colin Barrett
PubSub does not seem to be downloading image enclosures automatically. I'm pretty sure it's not just that the delegate methods that aren't getting called, since I checked the PubSub sqlite DB and from what I could tell no files were downloaded. Any suggestions? Or is PubSub just broken... in which

Re: Finding the iTunes Music Library

2008-09-30 Thread Colin Barrett
On Tue, Sep 30, 2008 at 8:26 PM, Colin Barrett <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2008 at 8:20 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote: >> Hello I am needing to know how to find the iTunes Music Library. > > Check out the iMedia Library from Karelia. http://www

Re: Finding the iTunes Music Library

2008-09-30 Thread Colin Barrett
On Tue, Sep 30, 2008 at 8:20 PM, Mr. Gecko <[EMAIL PROTECTED]> wrote: > Hello I am needing to know how to find the iTunes Music Library. Check out the iMedia Library from Karelia. http://www.karelia.com/imedia/ -Colin ___ Cocoa-dev mailing list (Cocoa-

Re: Adding a new menu programmatically

2008-09-30 Thread Colin Barrett
On Tue, Sep 30, 2008 at 1:20 PM, Matthew Gertner <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to add a new menu to the main menu of my application using > Cocoa. I thought something like this would do the trick: > > NSMenu* menu = [[NSMenu alloc] initWithTitle:@"foo"]; > NSMenuItem* item = [[N

Re: NSWindow animationResizeTime

2008-09-30 Thread Colin Barrett
On Mon, Sep 29, 2008 at 9:53 AM, Ken Orr <[EMAIL PROTECTED]> wrote: > Is there any way to alter the value provided by animationResizeTime > without subclassing NSWindow (as the documentation suggests)? I assume you're trying to resize a window with an animation, right? Try using NSViewAnimation on

PubSub not automatically downloading enclosures

2008-09-27 Thread Colin Barrett
I'm having some problems with PubSub not downloading enclosures. I'm running 10.5.5 and using Xcode 3.1.1. If this is the wrong list, my apologies. Here's a codesample that seems to not be working. --- - (void)awakeFromNib { PSClient *client = [PSClient applicationClient]; PSFeed