threads and delegates

2010-12-15 Thread julius
Hello all, I'm hoping you can help me with a question about threads and delegates. I don't have the terminology to pose the question suscinctly so I'll do so by reference to the program which gave rise to it. I have an object which implements a number of delegate methods of NSURLConnection:

Re: threads and delegates

2010-12-15 Thread Kyle Sluder
On Wed, Dec 15, 2010 at 8:10 AM, julius jul...@juliuspaintings.co.uk wrote: Hello all, I'm  hoping you can help me with a question about threads and delegates. I don't have the terminology to pose the question suscinctly so I'll do so by reference to the program which gave rise to it. I

Re: threads and delegates

2010-12-15 Thread julius
Kyle hi On 15 Dec 2010, at 16:17, Kyle Sluder wrote: You're already using delegates for asynchronous operation. You therefore do not need the secondary thread. Asynchronous operation requires a running runloop. Your secondary thread doesn't have one running. The main thread has a running

NSPathControl

2010-12-15 Thread koko
I would like to display a path control when the window title is cmd- clicked or right-clicked. I am unsure how to receive this event. Can you point me to a doc that describes such? Thanks. -koko ___ Cocoa-dev mailing list

Re: NSPathControl

2010-12-15 Thread Corbin Dunn
On Dec 15, 2010, at 10:21 AM, k...@highrolls.net wrote: I would like to display a path control when the window title is cmd-clicked or right-clicked. I am unsure how to receive this event. Can you point me to a doc that describes such? In NSWindow.h /* setRepresentedURL: If url is

NSToolbar autovalidate

2010-12-15 Thread koko
I have set all toolbar items and controls in my toolbar to autovalidate which as I understand the docs is that the items are validated by the toolbar. I have 4 views in the window content. One view contains a table one view contains an outline the other two contain bitmap images I

Re: Working with CGImage and Retina Display

2010-12-15 Thread Steve Christensen
I believe the issue is that CGImage just refers to an image with an effective scale factor of 1.0, no matter the device scale. It sounds like you need to somehow keep track of the image scale you're using so that you're always drawing at the correct size. One way would be to use +[UIImage

Re: cannot access __block variable of array type inside block

2010-12-15 Thread Matt Neuburg
On Tue, 14 Dec 2010 19:42:32 -0800, Jonathon Kuo newsli...@autonomy.caltech.edu said: Thanks, Dave! That works, though I don't understand why... We've been down this road. http://www.cocoabuilder.com/archive/cocoa/289708-arrays-as-block-variables.html m. -- matt neuburg, phd =

Re: Working with CGImage and Retina Display

2010-12-15 Thread Gustavo Pizano
Steve hello thanks for the reply.. it happens that I did a dirty work around here. at application launch I load the CGImageRef map depending on the device scale factor, so if it is 2.0 i load a @2x map otherwise the SD map. then when initializing the view which contains the and draw a portion

Re: NSToolbar autovalidate [Misunderstanding]

2010-12-15 Thread koko
I misunderstood the meaning of autovalidate. Turning this off solved my problem. Apologies for the noise. -koko On Dec 15, 2010, at 12:51 PM, k...@highrolls.net wrote: I have set all toolbar items and controls in my toolbar to autovalidate which as I understand the docs is that the

How to delay display of UIWebView until view is loaded?

2010-12-15 Thread Eagle Offshore
I've got a simple app that uses a navigation controller and a series of UIWebViews to handle the UI. When I want to load a new view controller that just has a web view as the entire view, allocate it, init it with the request it is supposed to display, and then push it onto the navigation

Re: How to delay display of UIWebView until view is loaded?

2010-12-15 Thread Laurent Daudelin
I had a similar problem like this. The way I worked around it is in the controller that create the webview controller and load the nib file as in: webViewController = [[WebViewController alloc] initWithNibName:@WebView bundle:NULL]; I do just this: [webViewController view]; That forces the

NSToolbarItem Craziness

2010-12-15 Thread koko
In IB I uncheck auto validates for my tool bar items. When I click in a table in a view the tool bar items are still enabled (not dimmed out) but when I click them their action is not called. When I click in a view other than the table then click a tool bar item its action method is

Playing with iOS UIPrintInteractionController to generate PDF output

2010-12-15 Thread Fernando Caprio
Hi All, I've been playing with iOS 4.2 print functions for a while. Wondering if I could use it to solve a limitation I have in my app. One of the features I need in my iPhone app is to get PDF output from an UIWebView. Until 4.2 was released, my approach was to render the PDF manually by

Build and Archive fails due to missing dSYM file

2010-12-15 Thread Graham Cox
Hi all, I'm trying to use Build and Archive to prepare an app for submission to the Mac App Store. It fails because it is unable to copy the dSYM file to the archive. The error suggests that the format needs to be DWARF with dSYM, but that is indeed what I am using. When I build in Debug

Layer hosting views, geometryFlipped, and subviews

2010-12-15 Thread Gideon King
Hi, I have a layer *hosting* view which has to use the geometryFlipped option so that it behaves correctly, and need to add an NSTextView subview for editing sometimes, and an ordinary custom view for editing at other times. I am having trouble working out where to place the subview. It just