Re: NSURLRequest and NSOperationQueue

2010-01-18 Thread Clint Shryock
I had the same issue in the past using NSOperationQueue and NSURLConnection, and I resolved it by simply telling NSURLConnection to send using synchronously using sendSynchronousRequest:returningResponse:error: Would that not take care of the issue? +Clint On Sun, Jan 17, 2010 at 1:55 PM, J.

Re: Outline View.

2009-12-04 Thread Clint Shryock
Try reading up on and using NSTreeController, specifically Providing Providing Controller Content in the Cocoa Bindings Programming topics: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/CocoaBindings/Concepts/CntrlContent.html#//apple_ref/doc/uid/TP40002147 otherwise

Re: program crashes because of a variable declaration

2009-06-11 Thread Clint Shryock
can you post the error message? I can't reproduce this On Thu, Jun 11, 2009 at 8:38 AM, Martin Batholdy batho...@googlemail.comwrote: Hi, my program crashes if I add a variable declaration to a header file. I really don't understand what the hell is wrong with it; The programm works fine

Re: Binding to two values

2009-05-29 Thread Clint Shryock
I think the best way I can think of would be to have an object act as an intermediate for this, which contains an aggregate array that table3controller is bound to. In this object define observers for tableview1controller and tableview2controller's selection property, so that this object receives

Re: How to download images for a contact in Cocoa?

2009-04-02 Thread Clint Shryock
Should you be using stringByAddingPercentEscapesUsingEncoding: instead of stringByReplacingPercentEscapesUsingEncoding: ? unless I'm reading that wrong it seems like you're taking a encoded URL and decoding it. I don't believe you need to initiate a download process, that method should take care

Re: How to use MySql, which api is for that

2009-03-13 Thread Clint Shryock
SMySQL_bundled.framework is list on that page ( http://mysql-cocoa.sourceforge.net/downloads.html ) under Binary files. it's grayed out and listed as deprecated but still available for download. I linked it into a fresh project and it complied successfully. hope that helps +Clint On Fri, Mar

Re: NSStatusItem when clicked shows custom view

2009-03-06 Thread Clint Shryock
Matt Gemmell has MAAttachedWindow, a sub class of NSWindow listed here: http://mattgemmell.com/source it comes with a sample project that shows it working with an NSStatusItem. See if that will suit your needs +Clint On Thu, Mar 5, 2009 at 1:03 PM, Chris Purcell haroldthehun...@mac.comwrote:

Re: Communication between objects

2009-02-11 Thread Clint Shryock
in order for modelObject1 to talk to modelObject2, it must have a reference to that object, similar to how myControllerObject has a reference to both modelObject1 and modelObject2 which you use to send messages. +Clint On Wed, Feb 11, 2009 at 8:42 AM, Jason Wiggins jwigg...@optusnet.com.auwrote:

Re: Binding the current table view selection to property in my controller

2008-06-19 Thread Clint Shryock
NSTableView sends a NSTableViewSelectionDidChangeNotification notification when it's selection changes, you could have your window controller listen for those notifications. also, you could make your window controller the tableView's delegate and implement the table view's

Re: NSTableView and NSImageView issues

2008-05-20 Thread Clint Shryock
If you can find the image in your database you can tell your image view to draw that image, using NSImageView's setImage: method.you'll need an outlet to the image view where-ever you're capturing the index and matching it to your database +cts On Tue, May 20, 2008 at 5:53 AM, Damien Cooke [EMAIL

Re: NSURLDownload and userInfo

2008-03-10 Thread Clint Shryock
Do you have two instances of NSURLDownload? if they are declared in the .h file you could test for equality in the downloadDidFinish: delegate method. - (void)downloadDidBegin:(NSURLDownload *)download { if(download == myNSURLDownloadA) { // something for a } if(download ==