Simulating webpage clicks

2009-10-16 Thread Charles Burnstagger
I have a Cocoa app with a WebKit browser. My app navigates to a default URL on startup. I need to parse the content of the default page, find specific links I am looking for, then simulate clicks on those links in the page just as if the user was clicking it normally - and I need to do all this

IKImageBrowserView selection notification

2009-11-24 Thread Charles Burnstagger
How do I detect when the selection changes in a IKImageBrowserView? I didn't see anything in the docs on that. Thanks, Chuck ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Bindings & ivars

2010-04-05 Thread Charles Burnstagger
Why, after I have connected a control in my nib. window using bindings can I no longer access it from code? After connecting a checkbox control using bindings, when my window controller loads, that control's ivar shows up as nil. Thanks, Chuck

Standard controls on top of NSGradients

2010-04-05 Thread Charles Burnstagger
I have a custom NSView subclass that contains an NSGradient. All this class does is draw a grey vertical gradient like iPhoto and iTunes do. When I place standard controls on top of one of my custom gradient views, when clicked, they also draw their rects with the same gradient - even though I

Re: Standard controls on top of NSGradients

2010-04-05 Thread Charles Burnstagger
Thanks. Changing to [ self.theGradient drawInRect:self.bounds angle:90.0 ]; in drawRect: did the trick. Chuck From: David Duncan To: Charles Burnstagger Cc: cocoa-dev@lists.apple.com Sent: Mon, April 5, 2010 12:23:46 PM Subject: Re: Standard controls on

beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector: on 10.6

2009-12-03 Thread Charles Burnstagger
What changes were made to NSSavePanel beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector: in 10.6? When I set my Xcode 3.2 project's base SDK to 10.6 and Deployment target to 10.5 it says the method is deprecated. Yet when I run Apple's ImageKitDemo, also using the 1

Normalizing text in elements from NSXMLParser

2009-12-19 Thread Charles Burnstagger
I retrieve some text from elements found in XML I parse using NSXMLParser on iPhone. The text contains special characters such as #x92;s instead of 's. I've tried all the normalization routines on NSString but none of them work on the special characters. Is there anyway in Cocoa to directly fix

Table views in combined tab/nav interface

2010-01-02 Thread Charles Burnstagger
I have a combined tab bar/navigation application whose navigation views each hold one table view. I've connected each navigation controller nib to a tab item in my tab bar controller and I've made the tab bar controller the root controller for the app like the docs say to. I know each of the n

IKImageBrowserView & IKImageView subclasses not getting called

2010-02-03 Thread Charles Burnstagger
I subclass IKImageBrowserView & IKImageView overriding initWithFrame: & drawRect: and sending the same messages to super in both cases. I've set them as the classes for the UI objects in my IB file, and as IBOutlets in my window's window controller subclass. But when I run the code, neither of

viewDidUnload while view is still onscreen

2010-02-05 Thread Charles Burnstagger
The viewDidUnload: method for one of my iPhone app's views gets called even when that view and all its subviews are still onscreen. (I assume in response to the didReceiveMemoryWarning: message). Since the view and all of its subviews are still needed at that point (they are onscreen), how shou

Debugger: Cannot access memory at address 0x00

2010-02-14 Thread Charles Burnstagger
This has probably been asked a million times but I didn't see anything in the archives, so here goes: I have a perfecting working desktop OS X app built under Xcode 3.2.1 and 10.6.2, targeting 10.6 only. I move the project folder a subfolder, reset all source, resource, and framework paths to r

close: before NSWindowWillCloseNotification

2010-02-18 Thread Charles Burnstagger
Hi all, I have a typical window/controller on OS X 10.6.2. When I click the window's close box, my window controller receives the close: message before it recevies the windowWillCloseNotification. This seems to be backwards in sequence to me. Any ideas why this happens and how to avoid it? I n