RE: to use the default about panel

2008-06-02 Thread Rajendran_Pichaimurthy
Have a look at the sample code its gives a fairly good idea and a decent description about the ABOUT BOX http://developer.apple.com/samplecode/FancyAbout/FancyAbout.zip Rajendran P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] com] On Behalf Of j o a r Sent:

File still in use after closing document window

2008-06-02 Thread Antonio Nunes
Hi, My NSDocument based app loads (imports) PDF files into its documents. After a PDF file has been loaded, and the document window it was loaded into has been closed, the original cannot be deleted when emptying the trash, because the finder thinks it is still in use. It is necessary to

How to TAB away from an NSCollectionView

2008-06-02 Thread Markus Spoettl
Hello List, I have a problem with NSCollectionView being a dead end for keyboard focus cycling. When pressing TAB the keyboard focus switches to the next suitable view until the NSCollectionView gets the focus. The cycle stops there and I can only use the mouse to set the focus somewhere

Main window disappears. Sometimes.

2008-06-02 Thread Francis Perea
Hi all, this is my first post to the list so I'll present myself. My name is Francis Perea and I've been a programmer for a long time (C, Pascal, PHP, Visual Basic) but I'm totally new to Mac Development and I'm doing my bests to finish my first little Mac OS X application with Objective-C

Re: Main window disappears. Sometimes.

2008-06-02 Thread Wayne Packard
When the window closes spontaneously, is anything printed to the Console (press shift-command-R to display it in Xcode)? wp On Jun 2, 2008, at 12:58 AM, Francis Perea wrote: Hi all, this is my first post to the list so I'll present myself. My name is Francis Perea and I've been a

Re: Core data. Programmatically setting relationships

2008-06-02 Thread Steven Hamilton
Apologies for being vague, I really should learn to proof read properly before pressing send. I've sussed it out. I point the relationship attribute (wrong word I know) at the instance of the new object. On 02/06/2008, at 12:48 AM, mmalc crawford wrote: On Jun 1, 2008, at 1:28 AM,

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
El 02/06/2008, a las 10:45, Michael Vannorsdel escribió: This will happen if the window is deallocated. It's probably getting cleaned up by garbage collection. On 2 Jun 2008, at 10:05, Francis Perea wrote: I've also supposed it was happening that, and I've tried to correct it by

Re: Main window disappears. Sometimes.

2008-06-02 Thread Francis Perea
Hi Michael. I've also supposed it was happening that, and I've tried to correct it by using retain in each one of init methods of both classes, but no results. What I mean is, in every init method, when I call the [super init] I've tried [[super init] retain]. But no way. Any other

Re: Main window disappears. Sometimes.

2008-06-02 Thread Michael Vannorsdel
This will happen if the window is deallocated. It's probably getting cleaned up by garbage collection. On Jun 2, 2008, at 2:36 AM, Francis Perea wrote: i Wayne, first of all thanks for your quick reply. Sorry to say that the Console says nothing :-( -- [Session started at

Re: Main window disappears. Sometimes.

2008-06-02 Thread Michael Vannorsdel
Retain and release have no effect on ObjC types when using garbage collection. If your code is written relying on retain counting then you should turn off garbage collection since you're trying to manage the memory yourself (and probably designed the code as such). Garbage collection has

Re: Main window disappears. Sometimes.

2008-06-02 Thread Graham Cox
What settings have you applied to your window in Interface Builder? generator=[[[Generator alloc]init] retain]; unrelated to your immediate problem, but in a non-GC application, this would be retaining twice - probably not what you intended. This suggests your understanding of memory

Re: Main window disappears. Sometimes.

2008-06-02 Thread Francis Perea
Hi Paul. I've disabled GC as Michael and you propose and the application it's working right now. I've had to retain both properties of the model class (generator) and the instance of that class in the controller class (generatorcontroller). I've also had to implement both dealloc

Re: Main window disappears. Sometimes.

2008-06-02 Thread Francis Perea
Hi Wayne, first of all thanks for your quick reply. Sorry to say that the Console says nothing :-( -- [Session started at 2008-06-02 10:33:15 +0200.] The Debugger has exited with status 0. - This is the log I get when I run the App, the Main window flashes and disappears.

Re: Core Data entity required error

2008-06-02 Thread Hamish Allan
On Mon, Jun 2, 2008 at 3:01 AM, Chataka [EMAIL PROTECTED] wrote: I am developing a non-document-based Core Data application and am facing a trouble with entity required error message. When I quit the app, the error message is shown on the console and the app fails to save data, although it

Re: Advanced Mac OS X Bootcamp

2008-06-02 Thread fclee
I'm currently in Atlanta, GA. I would seriously think of attending if I don't have to pay for lodging. I sent a query to BigNerdRanch but didn't receive a reply. Ric. On 06/01/2008 22:08 Adam Gerson wrote .. I signed up for the Advanced Mac OS X Bootcamp at The Big Nerd Ranch. They don't yet

Re: Advanced Mac OS X Bootcamp

2008-06-02 Thread Conrad Taylor
Hi, from the web site the price includes the following:Price A five-day class, a student guide, a luxury room, three delicious meals a day, a stylish Big Nerd Ranch t-shirt, and transportation to and from the airport for only $3500. Plan to arrive on Sunday evening and depart on Friday afternoon.

NSXMLDocument and relative DTD?

2008-06-02 Thread Alexander von Below
Hello Cocoa Pros, I am loading an NSXMLDocument from a webserver, and it contians a correct relative DTD, i.e. relative to the location of the resource within which the entity declaration occurs(1). When validating the document, either on initWithURL or explicitly, validation fails with

Re: Core Data entity required error

2008-06-02 Thread Chataka
On the console, I just get entity required That's it. Just two words. Nothing else I can include... Chataka On 2008/06/02, at 20:59, Hamish Allan wrote: On Mon, Jun 2, 2008 at 3:01 AM, Chataka [EMAIL PROTECTED] wrote: I am developing a non-document-based Core Data application and am

How does NSWorkspace -isFilePackageAtPath: work?

2008-06-02 Thread Daniel Dalquen
Hi all, I am working on client for online storage and the app should not download any files unless the user tells it to. Still it should recognize bundles and display them as files instead of directories. Does anybody know how the NSWorkspace method -isFilePackageAtPath: determines

Re: NSXMLDocument and relative DTD?

2008-06-02 Thread Jens Alfke
On 2 Jun '08, at 7:02 AM, Alexander von Below wrote: When validating the document, either on initWithURL or explicitly, validation fails with Error Domain=NSXMLParserErrorDomain Code=1549 UserInfo=0x14845c70 Line 2: failed to load external entity foo/bar/faz.dtd This sounds like it could

Re: How does NSWorkspace -isFilePackageAtPath: work?

2008-06-02 Thread Jens Alfke
On 2 Jun '08, at 7:30 AM, Daniel Dalquen wrote: Does anybody know how the NSWorkspace method -isFilePackageAtPath: determines whether the file at the path is a bundle or not? Does it just look at the directory structure only or does it read some files? Is there a way to find out? I

Re: How does NSWorkspace -isFilePackageAtPath: work?

2008-06-02 Thread Milen Dzhumerov
Hi Daniel, I believe NSWorkspace creates a CFURL from the path you're given and then uses LSCopyItemInfoForURL requesting kLSRequestAllFlags. Then you can use the LSItemInfoRecord provided which has a LSItemInfoFlags which in turn has bit flags for the following (and more as well)

Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread fclee
I would like to talk to Mail.app / ditto for (NDA - aware) iPhone platform. Ric. On 06/02/2008 08:53 Michael Watson wrote .. Are you trying to talk to Mail.app, or are you looking for a generic e- mail framework? -- m-s On 02 Jun, 2008, at 11:34, [EMAIL PROTECTED] wrote: I'm

Get Value from NSArrayController Binding

2008-06-02 Thread Christian Isaacs
Hello Everyone! I currently have an AppContoller with a method named events that returns an NSArray. This NSArray contains a collection of events returned by the CalCalendarStore eventsWithPredicate method. In IB I have an NSArrayController named Events that is bound to my AppController

ANN: “Cocoa Design Patterns” content availa ble via the Safari Rough Cuts

2008-06-02 Thread Erik Buck
ANN: The publisher of the upcoming “Cocoa Design Patterns” book has made approximately half of the content available via the Safari Rough Cuts system. Customers can (for a fee) start reading and commenting on the book now while it is still in development. Readers get early access to the

Re: NSPredicate: To be, or not to be

2008-06-02 Thread Gerriet M. Denkmann
On 2 Jun 2008, at 16:52, [EMAIL PROTECTED] wrote: On Sun, Jun 1, 2008 at 9:10 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Following your suggestion, I changed my predicateFormat to: @%@ contains kMDItemTextContent which translates into: kMDItemTextContent IN To be, or not to be and

Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread fclee
I'm searching for a Cocoa/ObjC routine to access/check Mail; specifically #read #unread mail messages. Is there such a routine or need I go do a BSD Mail access? So far, I've found the NSMailDelivery.h within the message.framework. But much of the code appears to be deprecated for OS 5 beyond.

Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread Michael Watson
Are you trying to talk to Mail.app, or are you looking for a generic e- mail framework? -- m-s On 02 Jun, 2008, at 11:34, [EMAIL PROTECTED] wrote: I'm searching for a Cocoa/ObjC routine to access/check Mail; specifically #read #unread mail messages. Is there such a routine or need I go

core data: awakeFromFetch, awakeFromInsert, didTurnIntoFault

2008-06-02 Thread [EMAIL PROTECTED]
in a couple of my classes subclassed from NSManagedObject, i provide the methods: awakeFromFetch, awakeFromInsert, didTurnIntoFault. in the awake messages, after calling the appropriate super methods, i establish some observers like: [[NSNotificationCenter defaultCenter] addObserver:

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Michael Vannorsdel
I've never tried it personally, but you might make a CFMutableArray with NULL callbacks and then cast it to an NSMutableArray since they're bridged types. On Jun 2, 2008, at 10:36 AM, Todd Ransom wrote: Unfortunately I need to target Tiger also. Thanks for the info, though, this will be

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Jens Alfke
On 2 Jun '08, at 9:32 AM, j o a r wrote: If you're only targeting Leopard or later, you might want to take a look at NSPointerArray. That is So. Awesome. I've been using Leopard for like two years now, and I'd never noticed this class before. Thanks for the tip! An array you can store

Re: Core Data entity required error

2008-06-02 Thread Quincey Morris
On Jun 2, 2008, at 07:21, Chataka wrote: On the console, I just get entity required That's it. Just two words. Nothing else I can include... Typically, frameworks errors are NSLog'ed, so they will at least include the application name and process id. So, you haven't established that

NSPersistentDocument's metadata APIs, when can I set my metadata before saving?

2008-06-02 Thread Sean McBride
Hi all, I am trying to make use of NSPersistentDocument's metadata APIs. I'm having trouble with the 'when' more than the 'how'. Which method of the saving process should I override to call setMetadata:forPersistentStoreWithURL:error:? All the metadata APIs want the NSURL of the store, which

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
Unfortunately I need to target Tiger also. Thanks for the info, though, this will be useful to know in a year or so. ;) Todd Ransom Return Self Software http://returnself.com On Jun 2, 2008, at 12:32 PM, j o a r wrote: On Jun 2, 2008, at 9:12 AM, Todd Ransom wrote: It seems that what I

Re: Core Data entity required error

2008-06-02 Thread Hamish Allan
On Mon, Jun 2, 2008 at 3:21 PM, Chataka [EMAIL PROTECTED] wrote: On the console, I just get entity required That's it. Just two words. Nothing else I can include... Ah, I see! Sorry, how frustrating. Try setting a breakpoint on NSLog() (or fprintf(), or syslog()) to see if you can get a

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Jens Alfke
On 2 Jun '08, at 9:12 AM, Todd Ransom wrote: An actor has a scenesForActor mutableArray and a scene has an actorsForScene mutableArray. This all works great except that it creates retain cycles and neither actor nor scene objects are ever released if they have a relationship. Yeah, this

many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
I have an application that allows users to create relationships between certain objects. For instance, there are scene objects and actor objects (like in a movie). The user can add multiple actors to a scene and an actor can participate in multiple scenes. A classic many- to-many

Re: many-to-many relationships and retain cycles

2008-06-02 Thread j o a r
On Jun 2, 2008, at 9:12 AM, Todd Ransom wrote: It seems that what I need is a non-retaining array. I googled around a bit and was surprised that I could not find an existing implementation. It looks like I can create one by subclassing NSMutableArray, overriding the primitive methods, and

Re: Get Value from NSArrayController Binding

2008-06-02 Thread Kyle Sluder
On Mon, Jun 2, 2008 at 12:08 PM, Christian Isaacs [EMAIL PROTECTED] wrote: 1) How do I get the title value from my Events NSArrayController Object? I've tried [eventTableView valueForKey:@Events.arrangedObjects.title] and different variations of it. There are a few problem here. 1) You're

Re: Main window disappears. Sometimes.

2008-06-02 Thread Michael Vannorsdel
The retained option for windows in IB applies to the window's back buffer settings. Retained means it only buffers sections offscreen and onscreen drawing is done directly instead of to a back buffer first. Not related to the window's retain count. On Jun 2, 2008, at 5:24 AM, Francis

Re: NSColorWell and alpha

2008-06-02 Thread Sean McBride
Also note NSColor's setIgnoresAlpha:, especially the last sentence. If the application doesn't support alpha, no opacity slider is displayed in the color panel, and colors dragged in or pasted have their alpha values set to 1.0. Applications that need to import alpha can invoke this method with

Re: Converting string to double: NSString or NSScanner

2008-06-02 Thread Sean McBride
On 5/31/08 10:35 PM, Michael Vannorsdel said: Basically NSString's floatValue and doubleValue methods only work when the numbers use the US style dot separator (as opposed to other locale separators such as a comma). If your NSString might contain non-US separators (or other formatting

Re: many-to-many relationships and retain cycles

2008-06-02 Thread j o a r
On Jun 2, 2008, at 10:04 AM, Jens Alfke wrote: If you're only targeting Leopard or later, you might want to take a look at NSPointerArray. That is So. Awesome. I've been using Leopard for like two years now, and I'd never noticed this class before. Thanks for the tip! It is pretty

Re: Main window disappears. Sometimes.

2008-06-02 Thread Bill Bumgarner
On Jun 2, 2008, at 10:31 AM, Michael Vannorsdel wrote: On Jun 2, 2008, at 5:24 AM, Francis Perea wrote: Hi Graham, thanks for your reply. I didn't know I could set any memory setting trough Interface Builder! After your question I looked into and I've seen that it states as Beffered.

Re: PDFDocuments and CGPDFDocuments

2008-06-02 Thread John Calhoun
On May 31, 2008, at 3:43 PM, Kevin Ross wrote: My ultimate goal is an application that is like a printer's PDF workflow, that will allow page manipulations like resizing / cropping / adding bleed information, and imposing multiple pages onto one with crop marks and the like. After

Re: core data: awakeFromFetch, awakeFromInsert, didTurnIntoFault

2008-06-02 Thread Hamish Allan
On Mon, Jun 2, 2008 at 4:34 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: however, if i then redo the action, neither awakeFromFetch nor awakeFromInsert is called, and thus i'm left without my observing in place. I had the same problem recently, and wrote a workaround for it:

Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 16:45, [EMAIL PROTECTED] wrote: I would like to talk to Mail.app / ditto for (NDA - aware) iPhone platform. Ric. You're probably looking at using the scripting bridge/AppleScript to talk to Mail.app. I know nothing about it, but it's where I'd start looking. Obviously

Re: Main window disappears. Sometimes.

2008-06-02 Thread mmalc crawford
On Jun 2, 2008, at 10:50 AM, Bill Bumgarner wrote: If your window is sometimes disappearing under GC -- is sometimes being collected prior to when you think it should be -- that means that the collector doesn't believe that the window object is being used by your application. To the

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 18:50, Bill Bumgarner wrote: While learning the retain/release paradigm is certainly useful, it is considerably more complex than GC. It is also unnecessary while learning Cocoa. Specifically, GC is intended to be a production quality solution that you can use in your

Re: Main window disappears. Sometimes.

2008-06-02 Thread Paul Sargent
On 2 Jun 2008, at 12:16, Francis Perea wrote: Hi Paul. I've disabled GC as Michael and you propose and the application it's working right now. I've had to retain both properties of the model class (generator) and the instance of that class in the controller class

[Moderator] Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread Scott Anguish
This question has been asked three or four times in the last week. A search of the list archives would have determined how to do that. In addition, if you're NDA aware, you would know that asking the question here in that context is violating that NDA. Please do some search the archives

Re: NSXMLDocument and relative DTD?

2008-06-02 Thread Alexander von Below
Thanks, I guess I will file it then. I am not the most knowledgeable guy about tcpdump, but at least - validateWithError: does not generate any packets to or from the host (I can see the packets on a non-validating init, though) Unless there is any more input, I will consider it a bug

Apple Remote and exclusivity

2008-06-02 Thread Elan Feingold
Hi, The app I'm working on makes use of the Apple Remote; specifically, it runs a helper app (daemon) so that the app can be started with a press of the Apple Remote Menu button, and then passes key presses it receives to the app via UDP messages. I'm seeing two issues: 1) Even though I

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Todd Ransom
Thanks guys. I decided to just use CFArrayCreateMutable in my accessor instead of creating a subclass and it's working beautifully. Todd Ransom Return Self Software http://returnself.com On Jun 2, 2008, at 1:01 PM, Jens Alfke wrote: On 2 Jun '08, at 9:12 AM, Todd Ransom wrote: An actor

My windows don't cascade

2008-06-02 Thread Stefan Haller
I have an NSDocument-based application that is still pretty close to the Xcode template for Cocoa Document-based application; i.e. I subclass NSDocument but not NSWindowController, and I implement -windowNibName but not -makeWindowControllers. When I open a new document, it doesn't cascade; it

NewBie: Trying to load a html file bundled with app...

2008-06-02 Thread Mark Bateman
Hi, I'm currently using this code line to load a http web page: [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@http://www.abc123.com;]]]; Is their a way I can modify this to load a htm file that is included in the app bundle: Thanks, Mark.

Re: NSPredicate: To be, or not to be

2008-06-02 Thread stephen joseph butler
On Mon, Jun 2, 2008 at 11:08 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Constucting the format properly (copying your suggestion): NSPredicate *predicate = [NSPredicate predicateWithFormat:@%K contains %@, kMDItemTextContent, @To be, or not to be]; I'm sorry. I forget that the Spotlight

Re: Categories (was Re: Cocoa et al as HCI usability problem)

2008-06-02 Thread Georg Tuparev
On May 20, 2008, at 10:46 AM, Bill Bumgarner wrote: On May 20, 2008, at 1:07 AM, Peter Duniho wrote: But personally, it makes me nervous to have a language that allows the implementation of a class to change according to other code not related to the class. It's one thing if you're just

Re: NewBie: Trying to load a html file bundled with app...

2008-06-02 Thread I. Savant
Is their a way I can modify this to load a htm file that is included in the app bundle: Yes. Get the main bundle for the application and ask it for the path to the resource (given its name and type), then create a URL from that. The rest you know ...See NSBundle for the details. -- I.S.

Re: Leopard (10.5+): Any Upper-Level (Cocoa) access to Mail?

2008-06-02 Thread has
[EMAIL PROTECTED] wrote: I'm searching for a Cocoa/ObjC routine to access/check Mail; specifically #read #unread mail messages. Use AppleScript or one of the ObjC-Apple event bridges to control Mail. For example, using objc-appscript: #import MLGlue/MLGlue.h // To generate Mail glue:

QCView loadCompositionFromFile

2008-06-02 Thread andrew
Hey, I'm trying to load a composition into a QCView using the loadCompositionFromFile. I was obtaining the path from a NSOpenPanel but loadCompositionFromFile was returning NO. I tried passing in a hard coded path as a parameter, getting the same result NO.I'm sure the paths are right as I

Drag-to-poof and tables

2008-06-02 Thread Tomas Franzén
Hi, I'm trying to figure out the best way to implement a scenario where there's a table where the user can drag rows to reorder (the easy part) but also drop them outside of the table to remove items with a poof. The way we do it now is to use slideBack:NO and implement

Re: Main window disappears. Sometimes.

2008-06-02 Thread Bill Bumgarner
On Jun 2, 2008, at 11:40 AM, mmalc crawford wrote: On Jun 2, 2008, at 10:50 AM, Bill Bumgarner wrote: If your window is sometimes disappearing under GC -- is sometimes being collected prior to when you think it should be -- that means that the collector doesn't believe that the window object

Re: Main window disappears. Sometimes.

2008-06-02 Thread Francis Perea
Hi all For my part just to say that I've learned a lot after the beginning of this post. The application is ready now, but I'll try to read and learn a lot more. And as Paul says I'm having lots of fun with Cocoa :-) Thanks all for your help and time. Att. Francis Perea

Spotlight multiple results for file

2008-06-02 Thread Dex Morgan
Hello guys, I've made a custom format used in a program of mine and I would to make a spotlight importer. I've looked at same examples and everything looks good; hovewer I've a question: is there a way to get multiple results item for a single file? My file contains lots of messages and I

Re: Spotlight multiple results for file

2008-06-02 Thread Hamish Allan
On Mon, Jun 2, 2008 at 10:26 PM, Dex Morgan [EMAIL PROTECTED] wrote: I've made a custom format used in a program of mine and I would to make a spotlight importer. I've looked at same examples and everything looks good; hovewer I've a question: is there a way to get multiple results item for a

Key-Value pairs

2008-06-02 Thread john darnell
Hello everyone: This is a discussion on theory and not a request for any practical help. Please also be advised I am not trying to bash Cocoa or Objective-C; I am simply curious why the designers of same built the language the way they did. Understanding theory can sometimes geometrically

Re: Key-Value pairs

2008-06-02 Thread Hamish Allan
On Mon, Jun 2, 2008 at 10:30 PM, john darnell [EMAIL PROTECTED] wrote: I just read Hillegass' chapter that introduces Key-Value coding. My question is, if this is such a necessary thing, why didn't the designers simply design the compiler to auto-generate setter and getter functions as per

Re: Key-Value pairs

2008-06-02 Thread Mike Abdullah
On 2 Jun 2008, at 22:30, john darnell wrote: Hello everyone: This is a discussion on theory and not a request for any practical help. Please also be advised I am not trying to bash Cocoa or Objective-C; I am simply curious why the designers of same built the language the way they did.

Re: Key-Value pairs

2008-06-02 Thread I. Savant
On Jun 2, 2008, at 5:30 PM, john darnell wrote: This is a discussion on theory and not a request for any practical help. Please also be advised I am not trying to bash Cocoa or Objective-C; I am simply curious why the designers of same built the language the way they did. Understanding

Will programmers new to Cocoa benefit from a Cocoa Design Patterns Book ?

2008-06-02 Thread Erik Buck
In answering some private email about the forthcoming Cocoa Design Patterns book, I made the following observations. Design patterns describe high quality practical solutions to recurring programming problems and can sometimes be quite abstract. Design patterns state how to solve

Re: QCView loadCompositionFromFile

2008-06-02 Thread Marco Masser
I'm trying to load a composition into a QCView using the loadCompositionFromFile. I was obtaining the path from a NSOpenPanel but loadCompositionFromFile was returning NO. I tried passing in a hard coded path as a parameter, getting the same result NO.I'm sure the paths are right as I

Re: Will programmers new to Cocoa benefit from a Cocoa Design Patterns Book ?

2008-06-02 Thread Ian Robinson
When is it published? Ian __ Ian Robinson - Belfast - UK Soapbox - http://www.canicula.com/wp On 3 Jun 2008, at 00:05, Erik Buck [EMAIL PROTECTED] wrote: In answering some private email about the forthcoming Cocoa Design Patterns book, I made the following observations. Design patterns

Re: Apple Remote and exclusivity

2008-06-02 Thread Elan Feingold
From the lack of responses I'm guessing I posted this to the wrong list :-) Can anyone suggest a better list to post to? Many thanks, -elan On Mon, Jun 2, at 9:44 AM, Elan Feingold wrote: Hi, The app I'm working on makes use of the Apple Remote; specifically, it runs a helper app

Re: Drag-to-poof and tables

2008-06-02 Thread Graham Cox
I forget the exact details, (if I get more time I'll look them up for you) but instead of passing NO to slideback, pass YES, then be smarter about what you return from the drag receiver. A drop outside the table is a valid target in your design, so you should say so - return something

Re: Apple Remote and exclusivity

2008-06-02 Thread I. Savant
On Jun 2, 2008, at 7:36 PM, Elan Feingold wrote: From the lack of responses I'm guessing I posted this to the wrong list :-) Can anyone suggest a better list to post to? Patience. You posted this recently. If someone has an answer, they'll give it to you. -- I.S.

Re: Will programmers new to Cocoa benefit from a Cocoa Design Patterns Book ?

2008-06-02 Thread Seth Willits
On 3 Jun 2008, at 00:05, Erik Buck [EMAIL PROTECTED] wrote: So, will programmers new to Cocoa benefit from a Cocoa Design Patterns Book ? I think all programmers will benefit from understanding design patterns at some point whether they use Cocoa or not. How soon a new programmer should

Re: Core Data entity required error

2008-06-02 Thread Melissa J. Turner
*Checks the oracle bones ... * Does the store configuration for your SQL store contain all the entities in your model? If not, you need to make sure that all the entities for objects you're trying to save into the store are in it. +Melissa On Jun 2, 2008, at 10:07, Hamish Allan wrote:

Re: Spotlight multiple results for file

2008-06-02 Thread Sherm Pendley
On Mon, Jun 2, 2008 at 5:28 PM, Hamish Allan [EMAIL PROTECTED] wrote: Have a look at the archives for [EMAIL PROTECTED] The short answer is sort of, but you have to create cache files for each atomic entity. If I recall correctly, that's why Mail.app switched from the traditional single-file

Re: Drag-to-poof and tables

2008-06-02 Thread Graham Cox
I realised after I posted this that of course in this situation you don't *have* a receiving view which can manipulate the return value. I had a look at an old piece of code that I thought was doing something similar and it turns out it's not quite the same - in my case I'm dragging

Re: how to implement ETA

2008-06-02 Thread William Squires
The following answer assumes you're dealing with a situation in which: 1) You already have a window where you can show the results as a non- modal window 2) The process has a fixed number of 'units' to process (such as records in a database, bytes to d/l, etc...) Here's my pseudo-code: //

Re: Main window disappears. Sometimes.

2008-06-02 Thread Henry McGilton (Starbase)
On Jun 2, 2008, at 1:48 PM, Francis Perea wrote: Hi all For my part just to say that I've learned a lot after the beginning of this post. The application is ready now, but I'll try to read and learn a lot more. And as Paul says I'm having lots of fun with Cocoa :-) Thanks all for

Re: NSPredicate: To be, or not to be

2008-06-02 Thread Gerriet M. Denkmann
On 3 Jun 2008, at 03:30, stephen joseph butler wrote: On Mon, Jun 2, 2008 at 11:08 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: Constucting the format properly (copying your suggestion): NSPredicate *predicate = [NSPredicate predicateWithFormat:@%K contains %@, kMDItemTextContent, @To

Re: Main window disappears. Sometimes.

2008-06-02 Thread William Bumgarner
On Monday, June 02, 2008, at 11:35AM, Paul Sargent [EMAIL PROTECTED] wrote: On 2 Jun 2008, at 18:50, Bill Bumgarner wrote: While learning the retain/release paradigm is certainly useful, it is considerably more complex than GC. It is also unnecessary while learning Cocoa.

trying to glue a cocoa ui to a pthread application / subclassing nsview

2008-06-02 Thread Michael Toy
trying to put a cocoa ui on an existing pthreads app. need to figure out how to let some random thread report to the ui that re-drawing the view would be a good idea. here is what i am trying to do, and this could be quite stupid but this is the best i've been able to figure out all by

Keyboard Layout Services

2008-06-02 Thread Charles Jenkins
Hi! I'm looking to learn about modern, Cocoa equivalents for the deprecated functions described in the Keyboard Layout Services Reference. Apple's documentation kindly notes that these API's are deprecated in 10.5, but does not direct me to their replacements. I need a way to save, change, and

Re: NSPredicate: To be, or not to be

2008-06-02 Thread stephen joseph butler
On Mon, Jun 2, 2008 at 7:37 PM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: On 3 Jun 2008, at 03:30, stephen joseph butler wrote: I'm sorry. I forget that the Spotlight predicate strings are slightly different from the regular ones. This works for me: NSPredicate *predicate = [NSPredicate

Re: trying to glue a cocoa ui to a pthread application / subclassing nsview

2008-06-02 Thread Quincey Morris
On Jun 2, 2008, at 19:49, Michael Toy wrote: what I find is that my initWithFrame method is not being called ... so i have two questions ... my drawRect: IS being called, so I know my custom view is being instantiated. why is my init not being called? i thought i figured out the

Re: many-to-many relationships and retain cycles

2008-06-02 Thread Adam R. Maxwell
On Jun 2, 2008, at 10:01 AM, Jens Alfke wrote: On 2 Jun '08, at 9:12 AM, Todd Ransom wrote: It seems that what I need is a non-retaining array. I googled around a bit and was surprised that I could not find an existing implementation. It looks like I can create one by subclassing

Re: Getting started with Core Animation

2008-06-02 Thread Matt Long
Hey Graham. I wrote a blog post not too long ago that demonstrates adding layers to a root layer. You can see it here: http://www.cimgf.com/2008/03/15/core-animation-tutorial-dashboard-effect/ I think you want to get the root content layer and then call insertSublayer or addSublayer to it.

Getting started with Core Animation

2008-06-02 Thread Graham Cox
Hi all, I'm looking at Core Animation for the first time. Having a bit of trouble getting started with the simplest set-up I can imagine. Goal - to add a single CALayer in my view so I can see it. Then, try some simple animations. I've tried a few different things but I just can't see

A little extra cash...

2008-06-02 Thread J. Todd Slack
Hi All, I am willing to pay a small sum (since I am an NPO) for someone who can create a small example all that creates as NSStatusMenu, fills it with a menu items and shows me how to call code (objective-C And AppleScript) when a menu option is selected. Who is up to do this? $100.00

Hillegass book memory question

2008-06-02 Thread Ashley Perrien
I'm working my way through the 3rd edition and have a question specifically on speech synthesizer in chapter 5. It's my understanding that whenever something is retained or alloced they eventually need to be released. In the application built in the chapter, NSSpeechSynthesizer is alloced

Solved (still open to suggestions): DTrace probe problem

2008-06-02 Thread radj
Finally got it to poll. I had to study signals and signal handling within the driver. lol. I've tried it and atleast it helps me delay the actual initialization of the driver while I run the D script. Your quick responses were really helpful. Thanks alot, Bill! DTrace rocks! radj On Mon, Jun

Re: Hillegass book memory question

2008-06-02 Thread Adam Leonard
Hi, I have the second edition still, but I assume this example has not changed much in the third edition. Usually, yes, you must release anything you +alloc, -retain, -copy, etc. This is a bit of a special case though. In this case, exactly one NSSpeechSynthesizer is allocated when the

Re: Main window disappears. Sometimes.

2008-06-02 Thread Michael Ash
On Tue, Jun 3, 2008 at 10:47 AM, William Bumgarner [EMAIL PROTECTED] wrote: Certainly, there could be better support -- a better out of the box pattern -- for dealing with the loading of auxiliary nibs. NSWindowController and NSViewController handle approximately the totality of auxiliary

Re: Key-Value pairs

2008-06-02 Thread Michael Ash
On Tue, Jun 3, 2008 at 5:41 AM, Hamish Allan [EMAIL PROTECTED] wrote: On Mon, Jun 2, 2008 at 10:30 PM, john darnell [EMAIL PROTECTED] wrote: I just read Hillegass' chapter that introduces Key-Value coding. My question is, if this is such a necessary thing, why didn't the designers simply

Re: File still in use after closing document window

2008-06-02 Thread Antonio Nunes
On Jun 2, 2008, at 2:06 PM, Hamish Allan wrote: My NSDocument based app loads (imports) PDF files into its documents. What code are you using to load them? The actual loading is done like this: self.masterPDFDocument = [[ANPDFDocument alloc] initWithURL: absoluteURL]; Although I