WWDC TIcket Available

2008-05-30 Thread Philip Benjamin
Hello list, I have a WWDC ticket for sale. I live in Sydney, Australia but have a Paypal account in case that assists the transaction. As to your assurance regarding a sale, I am an Apple employee in Applecare in Sydney and am happy to demonstrate that by sending a potential buyer an e-mail

Support saving to network volumes

2008-05-30 Thread Robert Cerny
Hello folks, being more sysadmin than developer I'm very interested in the issue of saving Photoshop files over network, which is discussed here: http://discussions.apple.com/thread.jspa?messageID=7280520 and here http://www.adobeforums.com/webx/.59b56503/8 - and appears to be broken in the

Re: Support saving to network volumes

2008-05-30 Thread stephen joseph butler
On Fri, May 30, 2008 at 1:36 AM, Robert Cerny [EMAIL PROTECTED] wrote: Hello folks, being more sysadmin than developer I'm very interested in the issue of saving Photoshop files over network, which is discussed here: http://discussions.apple.com/thread.jspa?messageID=7280520 and here

sorting an NSTableView

2008-05-30 Thread James W. Walker
Hi. I'm a Cocoa newbie, and I'm trying to figure out how to enable sorting columns of my table, but the NSTableView guide doesn't say anything about it. I see that NSTableView has a setSortDescriptors method, NSTableColumn has a setSortDescriptorPrototype method, and that IB shows a sort

[Moderator] Re: WWDC TIcket Available

2008-05-30 Thread Scott Anguish
As was said before Do not attempt to sell your WWDC ticket on this list. It is not appropriate. This list is for technical discussions of Cocoa. scott moderator On May 30, 2008, at 2:22 AM, Philip Benjamin wrote: Hello list, I have a WWDC ticket for sale. I live in Sydney, Australia but

Re: Hii I have problem in

2008-05-30 Thread haresh vavdiya
Ya but i have retained my stringRes instance variable but i can't understand what is problem On Fri, May 30, 2008 at 10:00 AM, Andrew Farmer [EMAIL PROTECTED] wrote: On 29 May 08, at 21:13, haresh vavdiya wrote: I m doing tic tac toc game and i have completed most of the parts. But only

NSURLConnection sendSynchronousRequest crash

2008-05-30 Thread Colin Cornaby
I'm using an NSURLConnection to heavily query a server (basically I'm abstracting a MySQL database, and I have a Hessian server (basically SOAP) on the other end handling requests.) However, I keep having sendSyncronousRequest crash on me after periods of heavy load. The stack trace is:

Re: Cocoa bug? release/removeObserver from inside observeValueForKeyPath

2008-05-30 Thread Kai
On 30.5.2008, at 00:53, Hamish Allan wrote: On Thu, May 29, 2008 at 11:15 PM, Geoff Schmidt [EMAIL PROTECTED] wrote: 3) If this is already known, is there a customary pattern for avoiding the problem? Never release from observeValueForKeyPath is a bit harsh! I don't know if it's known,

warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Steven Hamilton
Hi folks, I have a custom datasource that does a fetch from Core Data. My entity has a property in it called 'memo'. When I enumerate the returned array to check the results I get the following warning. warning: 'NSEntityDescription' may not respond to '-memo' The fetch appears to work

NSTextView and changing the selected text's color

2008-05-30 Thread Mattias Arrelid
Hi everyone, We have a subclass of NSTextView (SPTextView). A couple of these have some text with [NSColor grayColor] set as the NSForegroundColorAttributeName. It looks good, but when the user starts selecting text things go bad™. Since grey on light blue (the default system selection color)

Re: Hii I have problem in

2008-05-30 Thread Vijay Malhan
On Fri, May 30, 2008 at 1:26 PM, haresh vavdiya [EMAIL PROTECTED] wrote: Ya but i have retained my stringRes instance variable but i can't understand what is problem We can't see that in your code. Use: self.stringRes = txtResult.text; and declare a retain-property for your string ivar. or

Re: sorting an NSTableView

2008-05-30 Thread Vijay Malhan
An Example: mTable = member instance for your TableView mData = member array which provides the data-objects. Put the following code at a place where your table and data-source array is initialized. Like in awakeFromNib: method. Here I'm sorting on key name, Change it to whatever key you

Re: Another newbie question

2008-05-30 Thread Erik Buck
A better subjuct might have been How should I use interface objects to select command line arguments? or something like that. The current subject adds no value and will not help others search for information in the future. Having said that... One approach you might take (that will

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Peter Burtis
The compiler only knows about methods declared somewhere or the headers, and Core Data accessor methods are handled at runtime and not declared anywhere. It's only a warning and not an error because the compiler is smart enough to know that Objective C can do cool stuff like that. One

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Kyle Sluder
On Fri, May 30, 2008 at 6:09 AM, Peter Burtis [EMAIL PROTECTED] wrote: One solution is to use [managedObject valueForKey:@memo] and [managedObject setValue:@test123 forKey:@memo] instead of the accessors. And another, if you ever want to add custom logic, is to declare memo as a @property and

Re: sorting an NSTableView

2008-05-30 Thread Ken Worley
On May 30, 2008, at 12:48 AM, James W. Walker wrote: Hi. I'm a Cocoa newbie, and I'm trying to figure out how to enable sorting columns of my table, but the NSTableView guide doesn't say anything about it. I see that NSTableView has a setSortDescriptors method, NSTableColumn has a

Re: Support saving to network volumes

2008-05-30 Thread Jens Alfke
On 29 May '08, at 11:52 PM, Robert Cerny wrote: but it's cocoa question. But I could be probably more specific - is there anything I need to do to support saving to network volumes using this method? - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag That'll work fine. Be sure

Re: NSURLConnection sendSynchronousRequest crash

2008-05-30 Thread Jens Alfke
On 30 May '08, at 12:55 AM, Colin Cornaby wrote: I'm using an NSURLConnection to heavily query a server (basically I'm abstracting a MySQL database, and I have a Hessian server (basically SOAP) on the other end handling requests.) However, I keep having sendSyncronousRequest crash on me

Re: Copying NSTextStorage

2008-05-30 Thread Gordon Apple
Yes, I did try mutable copy (which still required intercepting the text key when copying the shape). It didn't help. I inserted some test code to try to figure out why it was crashing my program. The NSTextStorage, when copied, would blow up when asking for layoutManagers. (I was

Re: NSTextView and changing the selected text's color

2008-05-30 Thread Ross Carter
Instead of NSTextView setMarkedTextAttributes:, I think you want to look at setSelectedTextAttributes:. Marked text refers to text input that is not final. When you type option-e, NSTextView displays an accent glyph with a yellow background. That's marked text. When you type a letter, the

Re: NSURLConnection sendSynchronousRequest crash

2008-05-30 Thread Colin Cornaby
Strangely enough, I actually was already disabling the cache in my NSURLRequest. I changed the disable caching flag to the newer constant (NSURLRequestReloadIgnoringLocalCacheData), and now the crash has changed... #0 0x90e684a6 in mach_msg_trap #1 0x90e6fc9c in mach_msg #2

Re: NSURLConnection sendSynchronousRequest crash

2008-05-30 Thread Shawn Erickson
On Fri, May 30, 2008 at 8:35 AM, Colin Cornaby [EMAIL PROTECTED] wrote: Strangely enough, I actually was already disabling the cache in my NSURLRequest. I changed the disable caching flag to the newer constant (NSURLRequestReloadIgnoringLocalCacheData), and now the crash has changed... #0

Re: NSURLConnection sendSynchronousRequest crash

2008-05-30 Thread Colin Cornaby
: slaps forehead : Yeah, it's thread two that crashed... #0 0x900686ec in objc_msgSend #1 0x901a85da in CFRelease #2 0x970a1152 in __CFHTTPMessageDeallocate #3 0x901a8788 in _CFRelease #4 0x970ae4a9 in _CFHTTPReadStreamReadMark #5 0x970ae376 in prepareReception #6

Re: Support saving to network volumes

2008-05-30 Thread Alastair Houghton
On 30 May 2008, at 07:52, Robert Cerny wrote: Sorry for arguing with you, but it's cocoa question. But I could be probably more specific - is there anything I need to do to support saving to network volumes using this method? - (BOOL)writeToFile:(NSString *)path atomically:(BOOL)flag

Re: CGContextSetRGBFillColor() off by one?

2008-05-30 Thread Alastair Houghton
On 30 May 2008, at 02:21, Ken Ferry wrote: Well, if you use CGContextSetRGBFillColor as you said, then that sets a device RGB colorspace up as the fill colorspace, and device colorspaces don't do color matching. Device means 'untagged'. Which is to say, I don't know, sounds strange. Well...

Re: newbie question: menu item appears when app runs, but is not visible in NIB

2008-05-30 Thread Gary L. Wade
If you did that with the version of your NIB that was showing the extra menu item when running your application that you did not see in the Interface Builder edit mode, then things are really weird, unless, of course, you have some code that added that menu item, but that's not something one

Foundation Tool works™ from XCode, but even tually fails from CL

2008-05-30 Thread Robert Kukuchka
Hello all, I've written a very basic foundation tool who's sole purpose is to save incoming serial data from a cu.foo socket into a log file that I create. Real simple stuff here. Oddly, when I run the executable in Release mode from within XCode (Apple + R) I get no problems, and it

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Fritz Anderson
On 30 May 2008, at 4:17 AM, Steven Hamilton wrote: Also, any warnings or errors I get in xcode appear twice in the bubbles. Anyone know why that is? By default, new Xcode projects are set to the Release configuration (because all software is ready to release when you begin coding it.

Re: Foundation Tool works™ from XCode, bu t eventually fails from CL

2008-05-30 Thread Douglas Davidson
On May 30, 2008, at 10:51 AM, Robert Kukuchka wrote: I've written a very basic foundation tool who's sole purpose is to save incoming serial data from a cu.foo socket into a log file that I create. Real simple stuff here. Oddly, when I run the executable in Release mode from within XCode

Re: NSTextView and changing the selected text's color

2008-05-30 Thread Gary L. Wade
As for the color choices to use when drawing selected color text, what I've found most readable to my users is to continue using the selection color as chosen by the user but to draw the text shadowed as the Finder does it, with the text being white and the shadow color being the color of the

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread mmalc crawford
On May 30, 2008, at 3:09 AM, Peter Burtis wrote: The compiler only knows about methods declared somewhere or the headers, and Core Data accessor methods are handled at runtime and not declared anywhere. It's only a warning and not an error because the compiler is smart enough to know

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
This is the approach I ended up taking: // in MyDocument.m - (void) saveDocument:(id)sender { [[self windowControllers] makeObjectsPerformSelector:@selector(myPrepareToSave:)]; [super saveDocument:sender]; } // in MyWindow.m - (void) myPrepareToSave:(id)sender { [[self

Re: CGContextSetRGBFillColor() off by one?

2008-05-30 Thread Ken Ferry
Well... I'm not sure that's true any more is it? I mean, don't all the DeviceXXX colour spaces get mapped to the new Generic ones as of 10.4? I don't believe so, and that isn't what I see in testing. I filed a bug for this yesterday. My understanding, which may be flawed, is that using a

Re: PDFDocuments and CGPDFDocuments

2008-05-30 Thread John Calhoun
On May 29, 2008, at 6:50 PM, Kevin Ross wrote: I think there has to be either a better way of doing this or a way to do it where I will not have to convert (PDFDocument *) to CGPDFDocumentRef every time I perform a transformation. Joel was right. I think it would be easier for you to stay

Re: Ending Editing when Doc Saves?

2008-05-30 Thread Kyle Sluder
On Fri, May 30, 2008 at 3:33 PM, David Carlisle [EMAIL PROTECTED] wrote: The myPrepareToSave method in MyWindow allowed me to experiment with the commitEditing method. I tried sending it to either my NSWindowController or to the NSArrayController which is bound to the NSCollectionView which

Re: drawer attached to modal window is unresponsive

2008-05-30 Thread Andrew Merenbach
Hi, Steve! My experience is that drawers have always been buggy -- and drawers have had issues with Garbage Collection, too, under Leopard (although I haven't tested any drawers in a GC app since I upgraded from 10.5.2 to to 10.5.3 the other day). Also, I've read on this list that

Re: Ending Editing when Doc Saves?

2008-05-30 Thread Sean McBride
On 5/28/08 9:15 PM, David Carlisle said: If I'm adding text to an NSTextField, then I select Save, somehow the message needs to get to the NSTextField wherever it is that it needs to terminate editing and send its contents to the model before the model is saved. I don't see how I should go about

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
I'm not using Core Data. Perhaps that is part of why commitEditing doesn't work. I also mistakenly thought that NSWindowController was an NSController, and would respond to a commitEditing. DC On May 30, 2008, at 2:17 PM, Sean McBride wrote: Are you using Core Data? Have you seen:

Re: drawer attached to modal window is unresponsive

2008-05-30 Thread Jonathan Hendry
I believe a drawer is actually treated as a separate window, which probably confuses things when attached to a window that is modal. I'm not sure why the tableview scrolls, but this would explain why the other controls aren't accessible. Perhaps you could move the drawer contents into an

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
I'm binding my NSCollectionView to my NSArrayController, so I expected sending a commitEditing to the NSArrayController would work. On May 30, 2008, at 2:09 PM, Kyle Sluder wrote: On Fri, May 30, 2008 at 3:33 PM, David Carlisle [EMAIL PROTECTED] wrote: The myPrepareToSave method in MyWindow

Re: drawer attached to modal window is unresponsive

2008-05-30 Thread Steve Christensen
I dumped the items in the drawer so they wouldn't take up real estate unless needed since they can be on the bulky side. I ended up scrapping the drawer and just putting the items in the window itself. Bigger window but fewer issues. Thanks... steve On May 30, 2008, at 1:16 PM, Andrew

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Steven Hamilton
Thanks everyone. Good answers all round. On 31/05/2008, at 4:51 AM, mmalc crawford wrote: On May 30, 2008, at 3:09 AM, Peter Burtis wrote: The compiler only knows about methods declared somewhere or the headers, and Core Data accessor methods are handled at runtime and not declared

Application support for Time Machine

2008-05-30 Thread Ralf Edmund Stranzenbach
Hi. I'm still wondering if there is any plug-in or extension type architecture that enables applications to cooperate with the TimeMachine backups much like Apples Mail or AddressBook application. Does anyone know, how those things might be accomplished ? regards Ralf Edmund

Re: warning: 'NSEntityDescription' may not respond to

2008-05-30 Thread Ben Trumbull
The compiler only knows about methods declared somewhere or the headers, and Core Data accessor methods are handled at runtime and not declared anywhere. It's only a warning and not an error because the compiler is smart enough to know that Objective C can do cool stuff like that. One

Re: Application support for Time Machine

2008-05-30 Thread Nick Zitzmann
On May 30, 2008, at 3:44 PM, Ralf Edmund Stranzenbach wrote: I'm still wondering if there is any plug-in or extension type architecture that enables applications to cooperate with the TimeMachine backups much like Apples Mail or AddressBook application. Does anyone know, how those things

Re: Ending Editing when Doc Saves?

2008-05-30 Thread Mike Abdullah
On 30 May 2008, at 20:33, David Carlisle wrote: This is the approach I ended up taking: // in MyDocument.m - (void) saveDocument:(id)sender { [[self windowControllers] makeObjectsPerformSelector:@selector(myPrepareToSave:)]; [super saveDocument:sender]; } // in MyWindow.m -

Re: Ending Editing when Doc Saves?

2008-05-30 Thread David Carlisle
After your suggestion, I recalled and reviewed figure 6 about Saving a Document in the Document Based Applications Overview. That made it clear to me that saveDocument does call the saveDocumentWithDelegate method. Then I tried your scenario of closing an unsaved doc. Under the old

Re: CGContextSetRGBFillColor() off by one?

2008-05-30 Thread Michael Vannorsdel
This is from the CGColorSpaceCreateDeviceRGB docs: In Mac OS X v10.4 and later, this color space is no longer device- dependent and is replaced by the generic counterpart— kCGColorSpaceGenericRGB—described in “Color Space Names”. If you use this function in Mac OS X v10.4 and later, colors

Re: Application support for Time Machine

2008-05-30 Thread Michael Gardner
What are you looking to accomplish with Time Machine? -Michael Ralf Edmund Stranzenbach wrote: Hi. I'm still wondering if there is any plug-in or extension type architecture that enables applications to cooperate with the TimeMachine backups much like Apples Mail or AddressBook

Re: Cocoa bug? release/removeObserver from inside observeValueForKeyPath

2008-05-30 Thread Geoff Schmidt
Thanks to Hamish and Kai for their suggestions - the help is much appreciated. For now, I'm just being careful to autorelease where there is a potential problem, as Kai suggested. (Though I suspect that, in general, it's equivalent to the halting problem to determine which instances of

RESTful API's - Easy way to interact?

2008-05-30 Thread Jeremy
Hey, I am working on my first full fledge application. Now, my problem lies within that all my data and the main functionality of my application is coming from a RESTful API application on the web. I am having trouble sending headers and configuring the authentication and it just

Changing button title based on single or multiple selection?

2008-05-30 Thread Rick Mann
I'm sure this has been asked before, but a brief Google search didn't turn up anything. I have a button Print Label. I would like it to say Print Labels when more than one label is selected in the Tree Controller view. Is it possible to do this with Alt. Titles and bindings in IB? Or must

Re: Changing button title based on single or multiple selection?

2008-05-30 Thread stephen joseph butler
On Fri, May 30, 2008 at 11:43 PM, Rick Mann [EMAIL PROTECTED] wrote: I'm sure this has been asked before, but a brief Google search didn't turn up anything. I have a button Print Label. I would like it to say Print Labels when more than one label is selected in the Tree Controller view. Is it