Re: Core Data adding new instance - creating relationship to existing instance

2008-09-20 Thread Amy Heavey
Thank You, and I am very sorry for being so dim, I'm working on an app that accessing an existing file that Definitely has the Categories, but I'd forgotten that I'd been working on an empty file to make it easier to see changes I was making! Many Thanks Amy On 19 Sep 2008, at 19:23, Ja

Re: how to set Document type and its icon programatically

2008-09-20 Thread Jean-Daniel Dupas
Le 19 sept. 08 à 11:22, Nick Rogers a écrit : Hi, My cocoa app is not a document based app, but saves a binary file to the disk. I can set this file's name and extension and icon by going to the Target properties and adding a new document type there. It was working fine and the resulting

Re: Constant NSArray Count

2008-09-20 Thread Alex Mills
Hey, I have started looking at Key Value Observing but I'm having trouble working out how to observe the changes within an Array. Is there some place I can find example code on this to help wrap my head around it? Cheers Alex Mills On Sep 20, 2008, at 6:50 AM, Nick Zitzmann wrote: On

Re: Utility/Floating window with titlebar on left side

2008-09-20 Thread Dave Jewell
On Thu, 18 Sep 2008 17:30:27 -0700, Nick Beadman said: Interface Builder does have "Side Title" checkbox in the Appearance section of the window attributes inspector when working on Carbon window. IB2 is slightly more intelligent in that it knows it should only be enabled for certain window typ

Re: Constant NSArray Count

2008-09-20 Thread Jason Coco
On Sep 20, 2008, at 05:05 , Alex Mills wrote: Hey, I have started looking at Key Value Observing but I'm having trouble working out how to observe the changes within an Array. Is there some place I can find example code on this to help wrap my head around it? I'm pretty sure that you c

Re: Constant NSArray Count

2008-09-20 Thread Alex Mills
Hey, Yeah I have been reading through a bit of it. At the moment I have an NSArrayController setup in IB to access a Core Data Entity. A table view is then connected to that Array Controller to display the contents of it. This is all done without any code written by myself so I'm pretty n

Cocoa debug/release setting

2008-09-20 Thread René v Amerongen
Hi List, I have a small irritating problem. If I use debug as configuration I cant use breakpoints. If I select release then my breakpoints are working. I dont see what I did change compared with my former project and cant find any particulair in my settings. Of course maybe I did overlook so

Re: Cocoa debug/release setting

2008-09-20 Thread Fritz Anderson
On 20 Sep 2008, at 8:33 AM, René v Amerongen wrote: I have a small irritating problem. If I use debug as configuration I cant use breakpoints. If I select release then my breakpoints are working. I dont see what I did change compared with my former project and cant find any particulair in my

Re: Modal dialog without NSApplication

2008-09-20 Thread Eric Schlegel
On Sep 19, 2008, at 11:55 PM, brodhage wrote: No - there is still one minor problem: if I hide the carbon application and activate it again then my modal window is updated. But not the current modal dialog of the carbon application (which calls my modal dialog via user action). Yes - I k

Re: Drawing an NSImage in a CALayer

2008-09-20 Thread Patrick Mau
Hi Matt I'm not involved in the discussion. I just wanted to thank you for the complete example, because I'm following this thread too. Regards, Patrick On 19.09.2008, at 19:48, Matt Long wrote: Hey Brad, I re-read my message and realized I was a bit condescending in my comments. Not su

Re: Finding other apps' paths - deterministically!

2008-09-20 Thread Tommy Nordgren
On Sep 18, 2008, at 8:47 PM, Jerry Krinock wrote: The methods for finding applications, -[NSWorkspace fullPathForApplication:] -[NSWorkspace absolutePathForAppBundleWithIdentifier:] AppleScript's 'path to application' all return only ONE result. If there is more than installation of

Re: NSOperationQueue

2008-09-20 Thread has
Mike Fischer wrote: 12) Finally, my -calculateWorksheetRow looks like: - (void) calculateWorksheetRow { // column after column after column ... I didn't follow this complete discussion thread but I kind of read between the lines that your operation is actually calling a different proce

How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread Oleg Krupnov
What I want to achieve is that when a new window is created, it has the maximal size allowed by the screen, menu and the dock, exactly like if someone clicked the green zoom button in the window's title bar. I don't want any resizing animation or flickering though. It should be something very basi

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread Benjamin Stiglitz
> What I want to achieve is that when a new window is created, it has > the maximal size allowed by the screen, menu and the dock, exactly > like if someone clicked the green zoom button in the window's title > bar. I don't want any resizing animation or flickering though. Before ordering the wind

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread j o a r
On Sep 20, 2008, at 11:02 AM, Oleg Krupnov wrote: What I want to achieve is that when a new window is created, it has the maximal size allowed by the screen, menu and the dock, exactly like if someone clicked the green zoom button in the window's title bar. I don't want any resizing animation o

NSImage above scroll view content

2008-09-20 Thread Peter Alshuth
Hi all, I have a window with a scroll view that displays an image. I would like to have a centered symbol (another image) on top of this view independently of the slider positions and movements. Do I have to create another window with a transparent background and sync it with the movements of the o

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread j o a r
On Sep 20, 2008, at 11:11 AM, Benjamin Stiglitz wrote: Alternatively, you can set its frame to [[window screen] defaultFrame], which is the same frame that -zoom: will use, subtracting space for any visible drawers. I think that should be: "-[NSScreen visibleFrame]" j o a r ___

Re: NSImage above scroll view content

2008-09-20 Thread Quincey Morris
On Sep 20, 2008, at 11:26, Peter Alshuth wrote: I have a window with a scroll view that displays an image. I would like to have a centered symbol (another image) on top of this view independently of the slider positions and movements. Do I have to create another window with a transparent ba

Re: How to create a new window initially zoomed to the maximal size?

2008-09-20 Thread Benjamin Stiglitz
On Sat, Sep 20, 2008 at 12:22:52PM -0700, j o a r wrote: >> Alternatively, you can set its frame to [[window screen] >> defaultFrame], which is the same frame >> that -zoom: will use, subtracting space for any visible drawers. > > I think that should be: > > "-[NSScreen visibleFrame]" Yes,

cocoa, Iphone and NDA

2008-09-20 Thread Bruno Sanz Marino
Rules are rules... We can not talk about cocoa things related to the iphone in this list... Neither in any other list Lets Ask Apple to change the NDA and all the app store stuff Why dont we just open one page to ask Apple to change the NDA and allow us to talk about it? Why dont just

Re: Cocoa debug/release setting

2008-09-20 Thread René v Amerongen
Hi, Thank you for your reply. They are for the debug settings the same as the former project settings. The debug setting where the same as you provided. In the release version, the "Generate Debug Symbols" was checked." BTW, nice Idea about the select all and drag and drop. Didn't use that be

[Moderator] Re: cocoa, Iphone and NDA

2008-09-20 Thread CocoaDev Admins
On 20-Sep-08, at 3:36 PM, Bruno Sanz Marino wrote: Rules are rules... We can not talk about cocoa things related to the iphone in this list... Yet, you do it anyways. Do not talk about the iPhone SDK here. Period. You signed an agreement that you would keep it confidential. Abide by i

Re: Core Data migration

2008-09-20 Thread Paul Collins
Back on March 29 2008, Mr. Wilson reported a problem with migration that I seem to be having now. To wit, a core data model that includes an abstract entity and entity inheritance fails to be migrated on OS X 10.5. I'm getting different errors than he reported. I created a mapping model f

Re: cocoa, Iphone and NDA

2008-09-20 Thread Conrad Taylor
Hi, you need to look at it from Apple's point of view. For example, there might be some legal and/or patent pending issues that need to be resolved before the NDA is lifted. Thus, everyone needs to remain patient. In short, Apple needs to do what's in the best interest of their company.

Re: Constant NSArray Count

2008-09-20 Thread Nathan Kinsinger
On Sep 20, 2008, at 4:53 AM, Alex Mills wrote: Hey, Yeah I have been reading through a bit of it. At the moment I have an NSArrayController setup in IB to access a Core Data Entity. A table view is then connected to that Array Controller to display the contents of it. This is all done wit

escaping a string

2008-09-20 Thread Sandro Noel
Greetings. i'm playing around with the torrent specification. and i'm trying to talk to a tracker. for that i need to generate an info_hash acording to the protocol definition the string needs to be escaped. The 20 byte sha1 hash of the bencoded form of the info value from the metainfo file

Re: Finding other apps' paths - deterministically!

2008-09-20 Thread Michael Ash
On Sat, Sep 20, 2008 at 12:57 PM, Tommy Nordgren <[EMAIL PROTECTED]> wrote: >Use NSTask with the command line find -x / -name '*.app' > Do this on a separate thread, and cache the result. I highly recommend against this approach. One problem is that it will fail badly if any of the return

Re: escaping a string

2008-09-20 Thread Michael Ash
On Sat, Sep 20, 2008 at 10:53 PM, Sandro Noel <[EMAIL PROTECTED]> wrote: > Greetings. > > i'm playing around with the torrent specification. and i'm trying to talk to > a tracker. > for that i need to generate an info_hash > acording to the protocol definition the string needs to be escaped. > > Th

Re: escaping a string

2008-09-20 Thread Sandro Noel
Mike, thank you for the explanation, I am using NSData to unbencode the torrent file. ans sucessfully store it to a NSDictionary, "plist" so i can read it outside the software. that works just fine... The sha1 hash data is embedded raw, right in the file. No escaping is done, because there is