Core Data, xcdatamodel

2008-08-16 Thread R T
>From the xcdatamodel of a "Core Data Document-based Application", I have two >entities... 1st one entity is a set of rgb values. 2nd the other entity is a collection of these sets. ... so the add button of the 1st entity should not be available until an object of the 2

Re: creating files to write data to?

2008-08-16 Thread Jason Coco
On Aug 15, 2008, at 19:35 , Andy Lee wrote: On Aug 15, 2008, at 6:43 PM, Jason Coco wrote: Adding the @ just makes it an NSString constant... but writeData still requires (NSData *), not (NSString *). Argh! Or perhaps, given the nature of this error, which I missed, I should say "Arg!"

Re: what is radar:// supposed to open?

2008-08-16 Thread Wade Tregaskis
sorry not totally cocoa but this is the 2nd or 3rd time I've seen 'radar://' , clicked it, and I get an instant crash of something called mobilesafari. What's supposed to open radar:// links? I tried safari but it just does the same thing. I'd actually like to be able to track some of these

Re: Core Data, xcdatamodel

2008-08-16 Thread Tim Isted
I'm assuming that you are using NSArrayControllers in your Interface Builder nib/xib file... Bind the Content Set for the rgb controller to the collection controller's 'selection' with a model key path of whatever your relationship is called (ie the to-many relationship in the collection

Re: Problem with NSImage and .PNG file

2008-08-16 Thread Rainer Brockerhoff
At 03:26 -0700 16/08/08, [EMAIL PROTECTED] wrote: >From: Matt <[EMAIL PROTECTED]> >Date: Fri, 15 Aug 2008 13:54:32 -0700 >Message-ID: <[EMAIL PROTECTED]> >Subject: Problem with NSImage and .PNG file >Message: 4 > >I have an image that is 7200x32 pixels, which is used to store a series of >32x32 til

Re: Table column header not highlighted at first

2008-08-16 Thread Graham Cox
On 16 Aug 2008, at 1:36 am, Graham Cox wrote: I need to figure out why the second table works even though I'm not doing anything special (and none of the autosave stuff you mentioned either). OK, very simple: it was set in the nib. I didn't realise that presetting this in the nib was po

Re: Opening an external file in a external application

2008-08-16 Thread has
John Love wrote: Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide more information. Very short info list is as follows (stuff I need to do from within my Cocoa app): 1) be able to save the Excel sprea

Re: Making a bound view re-read its value

2008-08-16 Thread Michael Ash
On Fri, Aug 15, 2008 at 6:43 PM, Quincey Morris <[EMAIL PROTECTED]> wrote: > Lastly, before I shut up, in both Markus's question and the thread that Adam > referred to, the idea was to trigger a KVO update when the property value > was known to have *not* changed. In those circumstances, I still be

Re: Changing NSTextFieldCells' editing appearance?

2008-08-16 Thread Ross Carter
On Aug 15, 2008, at 1:41 PM, [EMAIL PROTECTED] wrote: -setBackgroundColor: didn't work? Nope, it didn't. But even if it would've, the background would have been visible at all times. I'm sorry if I didn't write clearly enough, but it's only when the cell is being edited that the backgr

Re: Using Flex/Lex in a Cocoa project

2008-08-16 Thread Michael Ash
On Fri, Aug 15, 2008 at 10:53 PM, John Joyce <[EMAIL PROTECTED]> wrote: > Right now, I'm toying with using Flex/Lex in a Cocoa project. > Unfortunately, I don't see a reliable or easy way to handle NSStrings > correctly all the time with Flex. > Does anybody have any suggestions for such text handl

Re: @property and @synthesize not working

2008-08-16 Thread Chris Hanson
On Aug 13, 2008, at 6:47 PM, Nathan Gilmore wrote: I am a newbie and I am having trouble getting my setter to work when I use @synthesize. Here is the code: @interface DayTaskController : NSArrayController { NSCalendarDate *searchDate; } @property(readwrite, assign) NSCalendarDat

Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-16 Thread Brad Gibbs
Hi, I'm looking for a Cocoa class to establish a TCP socket with another machine on a local network (non-OS X). I've found Omni Networking, AsyncSocket and NetSocket. I've read conflicting reports of the suitability of NSSocketPort for non-DO-related work. I would like to be able to us

Re: Window 'close' action fails

2008-08-16 Thread dct
My 'close' problem is solved by changing - (IBAction)quit:(id)sender { [self close]; } to - (IBAction)quit:(id)sender { [splotWindow close]; } where splotWindow is a File's Owner outlet connected to the nib's (only) window. I'd still like to know why "[self close]" failed i

NSUInteger hash

2008-08-16 Thread Steve Wart
Hi all, I'm just getting started with Cocoa and I'm trying to implement hash and isEqual: methods according to the recommendations in the coding guidelines. To implement a hash method I would normally just hash the receiver's instance variables together and xor the result, but this only works if

Re: Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-16 Thread Marco Masser
I would like to be able to use an SSL certificate, but, beyond that, my needs aren't exotic. Ease-of-use and reliability would be a big plus. I've also considered a Ruby class that would handle the TCP messaging and pass responses back to the Cocoa-based app. Any suggestions? Maybe the

Re: NSUInteger hash

2008-08-16 Thread Nick Zitzmann
On Aug 16, 2008, at 1:57 PM, Steve Wart wrote: What's the standard way of hashing non-object values in Cocoa? Something like this ought to work: (warning - written in Mail, untested, use at your own risk) [[NSNumber numberWithUnsignedInteger:someNSUInteger] hash]; You can use NSValue to

Re: NSUInteger hash

2008-08-16 Thread Michael Ash
On Sat, Aug 16, 2008 at 3:57 PM, Steve Wart <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm just getting started with Cocoa and I'm trying to implement hash and > isEqual: methods according to the recommendations in the coding guidelines. > > To implement a hash method I would normally just hash the r

Re: NSUInteger hash

2008-08-16 Thread Steve Wart
Thanks for the useful feedback. Nick I thought about creating an object for the number but I was apprehensive about the allocation overhead. It seems strange that NSRect and NSPoint are structs and not objects, but I'm rolling with it :) Mike thanks for suggesting I use integer value as its own h

Re: Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-16 Thread Devon Ferns
I've used AsyncSocket before but not too extensively. It seems to work just fine and I don't really have any complaints about it. Devon On 16-Aug-08, at 2:27 PM, Brad Gibbs wrote: Hi, I'm looking for a Cocoa class to establish a TCP socket with another machine on a local network (non-OS

Re: Window 'close' action fails

2008-08-16 Thread Chris Hanson
On Aug 15, 2008, at 3:28 PM, dct wrote: I don't believe that my 'close' problem is explained by an awkward init -- as I said before, all of the other U/I operations of the nib "SPlotWindow.nib" are working as expected (so somehow I've dodged a potential bullet, at least so far). Indeed; y

Re: Window 'close' action fails

2008-08-16 Thread Chris Hanson
On Aug 16, 2008, at 11:48 AM, dct wrote: I'd still like to know why "[self close]" failed in this case--but I can live with the solution without knowing why it works in some cases and not in others. I suspect you were not closing the window you thought you were closing, due to the way you

Re: Cocoa-dev Digest, Vol 5, Issue 1470

2008-08-16 Thread John Joyce
On Fri, Aug 15, 2008 at 10:53 PM, John Joyce <[EMAIL PROTECTED]> wrote: Right now, I'm toying with using Flex/Lex in a Cocoa project. Unfortunately, I don't see a reliable or easy way to handle NSStrings correctly all the time with Flex. Does anybody have any suggestions for such text handling an

Hiding NSTableColumn causes other columns to shrink

2008-08-16 Thread Markus Spoettl
Hi List, it appears it's time for a stupid question again. I'm experiencing some odd behavior of NSOutlineView (probably NSTableView as well) when hiding and showing table columns dynamically. I have an outline with a number of columns, the first and last column have "resize with table"

How to debug "The Debugger has exited due to signal 10 (SIGBUS)."

2008-08-16 Thread Nathan Gilmore
Hello Everyone, I am a newbie to Cocoa and just started getting this error as my app starts up: The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS). I am having trouble debugging this because I do not know what this means. I also don't kn

Re: creating files to write data to?

2008-08-16 Thread FTB Accounts
Thanks, all for the responses. First I changed the path to write to. The folder is writable. On GetInfo for the folder "MYTEST", I have set "Read & Write" permissions for: You can, Owner, Group, & Others. Is there anything else I need to do to make it write to that folder? As a side note, I am

Re: creating files to write data to?

2008-08-16 Thread Ken Thomases
On Aug 17, 2008, at 12:07 AM, FTB Accounts wrote: Here is the current code I am running: This code has many fundamental errors. I think you need to review the basics of the C language first, then of Objective-C. You have to walk before you can run. You say that you're not getting any e

Re: creating files to write data to?

2008-08-16 Thread Scott Anguish
On 17-Aug-08, at 1:52 AM, Ken Thomases wrote: On Aug 17, 2008, at 12:07 AM, FTB Accounts wrote: Here is the current code I am running: This code has many fundamental errors. I think you need to review the basics of the C language first, then of Objective-C. You have to walk before you