Re: Service request fails if provider has not yet launched

2009-01-17 Thread an00na
At last, I found the cause - something very silly of Safari, and I don't know why that happened yet. It turned out that if my app is not running, the service request from Safari will launch my app as expected; however, it is the debug version(which is not so up-to-date) of my app that is

Layer-hosted and layed-backed animate at different speeds

2009-01-17 Thread Travis Nickels
I apologise, The message below was sent by accident. Please disregard. Travis I am trying to animate a layer hosted view and and a layer backed view, both separate instances within a ³container view². The animation moves both layers from one point to another via a nested CATRANSACTION.

NSDocument: messages sent to closed document

2009-01-17 Thread Cate Tony
1. Open one document. 2. Open a second document. 3. Close the second document 4. Click on the File or Help menu Crash: message sent to dealloc instance of NSDocument. Here's an interesting twist. 1. Open one document. 2. Open a second document. 3. Close the first document 4. Click on the File or

Re: NSDocument: messages sent to closed document

2009-01-17 Thread Sean McBride
Cate Tony (tonyc...@mac.com) on 2009-01-17 9:09 AM said: 1. Open one document. 2. Open a second document. 3. Close the second document 4. Click on the File or Help menu Crash: message sent to dealloc instance of NSDocument. It's hard for anyone to help specifically without at least a backtrace.

Re: clip cursor in NSView

2009-01-17 Thread Sean McBride
Gami Ravi (ravi.g...@einfochips.com) on 2009-01-17 12:37 AM said: NSTrackingArea class is only for Mac OS 10.5 and later. What if i want to achieve same functionality in Mac OS 10.4? Please suggest. In addition to what Scott said, you can open Xcode, go to the Help menu, choose Documentation,

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
Furthermore, vtables are not mandatory in all cases/calls. A good optimizer (or properly written class) can overcome such dependencies in several cases - optimization is far easier to accomplish outside the constraints of the ObjC runtime. So you get faster messaging, and more optimization

Re: Displaying multiple core data relationships in NSOutlineView

2009-01-17 Thread Rick Hoge
Steve, Quincy: Thank you for the replies! At the moment I'm working with a non-Core-Data class to achieve the outline view, using code adapted from the SourceView example. I am realizing that to be able to archive this and correctly maintain object graphs, I'll likely have to link the

Re: runModalForWindow, best solution to modal session

2009-01-17 Thread Ken Thomases
On Jan 16, 2009, at 2:06 AM, Alexander Reichstadt wrote: @implementation KSingleItemSelectorController #pragma mark - #pragma mark Init+Dealloc + (id)selectItemUsingFenstertyp:(NSString *)aFenstertyp withComposition:(NSString *)aKomposition { KSingleItemSelectorController *newXelector =

Re: modifier-flags with no key pressed and mouseDown 256, why?

2009-01-17 Thread Dave DeLong
Good to know! Thanks for the info. =) Dave On 16 Jan, 2009, at 4:47 PM, Shawn Erickson wrote: On Fri, Jan 16, 2009 at 2:29 PM, Shawn Erickson shaw...@gmail.com wrote: On Fri, Jan 16, 2009 at 1:15 PM, Dave DeLong davedel...@me.com wrote: My understanding is that the modifierFlag 256

Sample Code from WWDC 2008?

2009-01-17 Thread Brad Gibbs
I attended a couple of great sessions on Core Data at WWDC 2008. I believe I remember the presenters saying that the code developed in those sessions was going to be made available to attendees (I believe it was going to be made available in two versions -- one emphasizing the use of

ImageAndTextCell rendering weirdness

2009-01-17 Thread Andrew Shamel
Greetings Cocoa-Dev! I am having the hardest time with a persistent and strange error with Apple's ImageAndTextCell in my NSOutlineView. I have the ImageAndTextCell set to be the outline's data cell via NSTableColumn's -setDataCell: method, and I set the image of the cell in the

Re: ImageAndTextCell rendering weirdness

2009-01-17 Thread Sandy McGuffog
Well, I haven't seen this specific behavior. But one thought is to check that your images have their size set - as initialized from a [NSImage imageNamed:], size is not set(!). This can cause all sort of havoc. Second comment: there are actually several different versions of

Re: Sample Code from WWDC 2008?

2009-01-17 Thread Scott Anguish
I believe it's available through the Attendee's site. On 17-Jan-09, at 12:22 PM, Brad Gibbs wrote: I attended a couple of great sessions on Core Data at WWDC 2008. I believe I remember the presenters saying that the code developed in those sessions was going to be made available to

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-17 Thread Markus Spoettl
On Jan 16, 2009, at 11:07 PM, Michael Ash wrote: I highly recommend scripting the entire process. This is the kind of thing you want to be able to do by typing a single easy command, not have to slog through the whole process twice just because you forgot something the first time. (This won't be

Re: Sample Code from WWDC 2008?

2009-01-17 Thread Robert Marini
If you check out the WWDC attendee site (https://developer.apple.com/wwdc/attendee/index.php ) you can pick a track-specific reference library. The sample code will be available there. -rob. On Jan 17, 2009, at 12:22 PM, Brad Gibbs wrote: I attended a couple of great sessions on Core Data

Re: What does this SystemFlippers message mean

2009-01-17 Thread Michael Ash
On Sat, Jan 17, 2009 at 2:33 AM, an0...@gmail.com wrote: My app is a service provider, and its NSSendTypes consists of a single NSStringPboardType. When some other apps request the service, I occasionally see following log messages in the Console: SystemFlippers: didn't consume all data for

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Michael Ash
On Sat, Jan 17, 2009 at 2:02 AM, Justin Carlson carrierandopera...@yahoo.co.uk wrote: Michael Ash wrote: Note that dispatch is not mandatory in ObjC either. It is possible (you get little help from the compiler, but it's not hard) to use either a vtable approach or a straight function call

Re: .DMG Keeps Getting Bigger After Converting?

2009-01-17 Thread Michael Ash
On Sat, Jan 17, 2009 at 4:02 PM, Markus Spoettl msappleli...@toolsfactory.com wrote: Totally agreed, scripting the entire process would be wonderful. But: How does one go about scripting a template DMG creation that should open in a certain view mode in Finder (e.g. icon) using a defined icon

Re: Sample Code from WWDC 2008?

2009-01-17 Thread Brad Gibbs
I've checked there, but I didn't see the Core Data samples I was looking for. In fact, there are only two sample code entries in the Cocoa section that are dated the week of WWDC 2008 ( one is on subpixel antialiasing and the other deals with layer-backed views) and no files dated after

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
The point here is that there's no reason to be afraid that using ObjC will get you stuck in some performance hole that you can't dig out of without a rewrite. Just to be clear re my earlier posts: I completely agree with that assessment; it's just that I'm more prone than many to optimize by

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Quincey Morris
On Jan 17, 2009, at 15:49, Scott Ribe wrote: it's just that I'm more prone than many to optimize by throwing in some strategic C++ Yikes! I hope you realize that for some of us of a certain computing era, this statement looks quite strange. As if you said, perhaps, that you were prone to

Re: string bounding rect methods

2009-01-17 Thread James W. Walker
On Jan 16, 2009, at 8:12 PM, Aki Inoue wrote: Yes, rendering and measuring methods behave the same. Please file a doc enhancement request. Thanks for confirming my guess. I used the documentation feedback form. On 2009/01/16, at 19:11, James Walker wrote: The documentation for

Re: ImageAndTextCell rendering weirdness

2009-01-17 Thread Andrew Shamel
Thanks, Sandy. I found a later version (in the Source View example code), and alas, even with the size set, the same thing is happening. I confess that I don't know as much about view/cell drawing as I might. Has anyone seen this kind of rendering before, if not in this situation?

Re: ObjC in time-critical parts of the code

2009-01-17 Thread Scott Ribe
Yikes! I hope you realize that for some of us of a certain computing era, this statement looks quite strange. As if you said, perhaps, that you were prone to reducing your fuel consumption by going back to driving a Hummer. Yes, I realize that. Particularly for those who are only familiar

Control via applicationDidFinishLaunching?

2009-01-17 Thread James Trankelson
Ok, sorry for the generic subject line, but this is a hard one to describe. Bear with me. I'm using an external framework (the Ogre graphics engine) that is very Carbon-centric. Support for Cocoa is new in this framework, and unfortunately, poorly integrated. Here's my problem: Ogre is

Yo

2009-01-17 Thread Parker Logan
What program do I download to write code From: LIL PLO ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Yo

2009-01-17 Thread Dave DeLong
Xcode, yo: http://tinyurl.com/73ojc7 Dave On 17 Jan, 2009, at 7:26 PM, Parker Logan wrote: What program do I download to write code From: LIL PLO ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: NSDocument: messages sent to closed document

2009-01-17 Thread Jerry Krinock
On 2009 Jan 17, at 6:09, Cate Tony wrote: 1. Open one document. 2. Open a second document. 3. Close the second document 4. Click on the File or Help menu Crash: message sent to dealloc instance of NSDocument. Here's an interesting twist. 1. Open one document. 2. ... Everything is fine.

Re: Yo

2009-01-17 Thread I. Savant
On Jan 17, 2009, at 9:26 PM, Parker Logan wrote: What program do I download to write code Hasn't this list thoroughly answered your more general how do I write code question just recently? http://www.cocoabuilder.com/search/archive/cocoa?words=LIL+PLO READ THE RESOURCES WE'VE SENT

Cocoa and the need for a dynamic language

2009-01-17 Thread Erik Buck
In this forum, Scott Ribe recently wrote ...but just as you can't rewrite Cocoa in C++ as we've seen demanded by people who don't really understand Objective-C... I claim that a relatively dynamic language is necessary to effectively use Cocoa. I also claim to have very deep and thorough

Re: Yo

2009-01-17 Thread Rob Keniger
On 18/01/2009, at 12:45 PM, I. Savant wrote: On Jan 17, 2009, at 9:26 PM, Parker Logan wrote: What program do I download to write code Hasn't this list thoroughly answered your more general how do I write code question just recently? I don't think it will make any difference, I

Re: Yo

2009-01-17 Thread Rob Keniger
On 18/01/2009, at 1:05 PM, Rob Keniger wrote: I don't think it will make any difference, I suspect this guy is just a spammer using the list for email address harvesting. It's the typical modus operandi. Hmm, seems like I might have hit the nail on the head, I just received a

Re: Yo

2009-01-17 Thread Andrew Merenbach
On Jan 17, 2009, at 7:05 PM, Rob Keniger wrote: On 18/01/2009, at 12:45 PM, I. Savant wrote: On Jan 17, 2009, at 9:26 PM, Parker Logan wrote: What program do I download to write code Hasn't this list thoroughly answered your more general how do I write code question just recently? I

Setting Custom View as First Responder

2009-01-17 Thread Walker Argendeli
I've created a custom view with 2 instances in the nib. We'll call them view1 and view2. I have a controller class that has the outlets for both views. I'd like to have a certain function in my controller class test to see if view1 is the first responder, and if not, to make it the

Re: ObjC in time-critical parts of the code

2009-01-17 Thread John Engelhart
On Sat, Jan 17, 2009 at 7:44 PM, Scott Ribe scott_r...@killerbytes.com wrote: TBH (and more to the point) I strongly suspect it's true of everyone who's expressed an opinion in this thread that it's not so much about the suitability of the language to optimizations, but more about the skill

Find bindings

2009-01-17 Thread Alejandro Rodriguez
Hello, Is it possible to programmatically/dynamically find the binding keypath for a NSTableviewColumn that is binded to a NSArrayController. I've been looking and thinking for while but so far I don't have much. Thanks. ___ Cocoa-dev mailing

CALayer unwanted blurring

2009-01-17 Thread Joe Wildish
I am sub-classing CALayer and experiencing some strange behaviour. Sometimes the content of one of my sub-classes is blurred. I can't figure out why. The content for the sub-classed layers is being provided by drawInContext:(CGContextRef)ctx. I am using the NS APIs rather than Core

real noob question

2009-01-17 Thread Darren Stuart
Hi there, sorry for the real noobish question but I can't figure this out or find an answer. I have a variable called myMoney and its a NSDecimalNumber and I want to set init it with the value of 23.30. NSDecimalNumber *myMoney = [[NSDecimalNumber alloc] init]; If this is the wrong place

Re: Setting Custom View as First Responder

2009-01-17 Thread Quincey Morris
On Jan 17, 2009, at 20:13, Walker Argendeli wrote: I've created a custom view with 2 instances in the nib. We'll call them view1 and view2. I have a controller class that has the outlets for both views. I'd like to have a certain function in my controller class test to see if view1 is

Re: Setting Custom View as First Responder

2009-01-17 Thread Rob Keniger
On 18/01/2009, at 2:13 PM, Walker Argendeli wrote: I've created a custom view with 2 instances in the nib. We'll call them view1 and view2. I have a controller class that has the outlets for both views. I'd like to have a certain function in my controller class test to see if view1 is

Re: Find bindings

2009-01-17 Thread Rob Keniger
On 18/01/2009, at 8:13 AM, Alejandro Rodriguez wrote: Is it possible to programmatically/dynamically find the binding keypath for a NSTableviewColumn that is binded to a NSArrayController. I've been looking and thinking for while but so far I don't have much. Yes, have a look at the

Re: real noob question

2009-01-17 Thread Rob Keniger
On 18/01/2009, at 11:18 AM, Darren Stuart wrote: Hi there, sorry for the real noobish question but I can't figure this out or find an answer. I have a variable called myMoney and its a NSDecimalNumber and I want to set init it with the value of 23.30. NSDecimalNumber *myMoney =

NSTableColumn not usable with binder of class NSTextValueBinder

2009-01-17 Thread Robert Monaghan
Hi Everyone.. I need to revive this thread. http://www.cocoabuilder.com/archive/message/cocoa/2008/8/19/216148 I have a NSTextColumn, with a custom NSCell containing a custom view. I am getting the same exception has mentioned in this email thread. The part that isn't clear, is how to fix

After Hillegass

2009-01-17 Thread Brian Bruinewoud
Firstly: is there a FAQ for this list? I was able to find a FAQ for the mailing lists in general but none for this list in particular. Secondly: I've read the 3rd edition of Hillegass and it has gotten me a fair way. What book should I move to next? I searched the archives and the latest

Controlling the position of windows system-wide

2009-01-17 Thread Matt
Apologies if this isn't directly cocoa-related, I have had trouble researching this because I'm not quite sure where to start my search. I'm working on a possible utility that would help me align the position of windows across several cocoa apps (which I did not build), and am trying to find out

Re: Equivalent ?

2009-01-17 Thread Adam Leonard
Technically, they are not equivalent. The BOOL type is not a native boolean type in C. If you command double click on it in XCode, you can see that it is a signed char, meaning it can store any value from -128 to +127. This differs from a native boolean type, such as the (lowercase) bool

Re: Controlling the position of windows system-wide

2009-01-17 Thread Sean McBride
Matt (bravo...@gmail.com) on 2009-01-17 1:35 AM said: Apologies if this isn't directly cocoa-related, I have had trouble researching this because I'm not quite sure where to start my search. You can start your search with the word Accessibility, for example here:

Re: After Hillegass

2009-01-17 Thread Quincey Morris
On Jan 17, 2009, at 22:18, Brian Bruinewoud wrote: Secondly: I've read the 3rd edition of Hillegass and it has gotten me a fair way. What book should I move to next? I searched the archives and the latest dated e-mails I could find were from 2006 and mentioned a Cheeseman book, is this the

Create App both for Tiger and Leopard

2009-01-17 Thread Vitaly Ovchinnikov
Hello list, I need to use NSPredicateEditor class in my app that should work both on Tiger and Leopard. But Tiger doesn't have such control, so I created two different NIBs and load one of them depending on current platform. Each NIB has it's own owner-class that implements some logic. Owner of