Why do my WebView controls do a mini-reload when they become key?

2014-08-19 Thread Daryle Walker
This has happened since my first version of the app. When the WebView has the control focus, clicking in it is fine. When the NSTextField has focus and I click the WebView, which switches focus, the WebView does a mini-reload and visual refresh. It doesn’t reset the Back/Forward history, thank g

Re: Issuing NSTextField action message

2014-08-19 Thread Ken Thomases
On Aug 19, 2014, at 8:33 PM, Carl Hoefs wrote: > OS X 10.9.4 I have an NSTextField into which a user types digits. When a > digit is typed, I have it set up so the -controlTextDidChange: delegate > method is invoked. Now, in the delegate method I would like (depending on > circumstances) to c

AutoLayout textfield against accessory view

2014-08-19 Thread Luther Baker
I'd like to place a UITextField in the center of a UITableViewCell such that initially, the textfield extends to all four sides. But ... I'd also like to make it AccessoryView friendly. Namely, when the accessory appears (or is always appearing) I want the aforementioned textField to shrink and no

Re: Issuing NSTextField action message

2014-08-19 Thread Graham Cox
On 20 Aug 2014, at 11:33 am, Carl Hoefs wrote: > OS X 10.9.4 I have an NSTextField into which a user types digits. When a > digit is typed, I have it set up so the -controlTextDidChange: delegate > method is invoked. Now, in the delegate method I would like (depending on > circumstances) to

Issuing NSTextField action message

2014-08-19 Thread Carl Hoefs
OS X 10.9.4 I have an NSTextField into which a user types digits. When a digit is typed, I have it set up so the -controlTextDidChange: delegate method is invoked. Now, in the delegate method I would like (depending on circumstances) to cause the text field to behave like the user ended editing

Re: Storing a value to access across app launches and even re-install

2014-08-19 Thread Graham Cox
On 19 Aug 2014, at 3:25 pm, Navneet Kumar wrote: > I need to store a numeric value in the system and update and access it across > every launch of my app. NSUserDefaults > Also is it possible to safely store it in the system so that it can be picked > up even after a re-install of my app?

How do I use loadAlternateHTMLString:baseURL:forUnreachableURL: with webView:didFailProvisionalLoadWithError:forFrame:?

2014-08-19 Thread Daryle Walker
I’m not sure what parameters you’re supposed to use with the former method, especially within the latter. I got: > - (void)webView:(WebView *)sender didFailProvisionalLoadWithError:(NSError > *)error forFrame:(WebFrame *)frame > { > if (frame == sender.mainFrame) { // Ignore notices from su

Re: NSSpellChecker exception

2014-08-19 Thread Martin Wierschin
> Thanks, so they can be safely ignored. Does that also apply to similar > exceptions (much rarely reported) related to DO and coming from: > > -[IMKInputSession activate] (in HIToolbox) resulting in > NSPortTimeoutException: connection timeout: did not receive reply > ... I can't speak w

Re: How to convert String.Index to UInt?

2014-08-19 Thread Quincey Morris
On Aug 19, 2014, at 02:06 , Gerriet M. Denkmann wrote: > But what about: > SELPlus aSelector = BetterSelectorFromString ( aSelectorName, "returns > object which does NOT need to be released" ); > id a = [ self performSelector: aSelector ]; > > Or (if modifying SEL is not viable): >

Re: Storing a value to access across app launches and even re-install

2014-08-19 Thread 2551
It's impossible to store something on a users computer and make it invulnerable from the user deleting it. The best you can do is hide it, but there are various ethical hoops to jump through with that one. Notwithstanding better advice from other list members, about best advice i've seen on th

Re: NSPageLayout obsolete?

2014-08-19 Thread Ken Thomases
On Aug 19, 2014, at 3:17 AM, Quincey Morris wrote: > Keep in mind that two conditions must be satisfied for a menu item to be > enabled: > > a. There must be an object in the responder chain that implements the > associated action method. > > b. *That object* must return YES from validateUse

Transparent NSImage in NSButton

2014-08-19 Thread Aandi Inston
I'm wondering what the "right" way is to use transparent images in an NSButton (not using Interface Builder as this is a port of a platform independent dialog library, which is also required to work back to 10.5). Transparent images here = PDF loaded as NSImage which do not paint their entire canva

Re: How to convert String.Index to UInt?

2014-08-19 Thread Gerriet M. Denkmann
On 18 Aug 2014, at 12:44, Quincey Morris wrote: > On Aug 17, 2014, at 21:36 , Gerriet M. Denkmann wrote: > > Watching (so to speak) what you’re doing from a distance, what concerns me is > *not* that you are or are not doing things in a swifty way, but that you’re > *evaluating* Swift when

Re: NSPageLayout obsolete?

2014-08-19 Thread Quincey Morris
On Aug 19, 2014, at 00:32 , Daryle Walker wrote: > I looked for -runPageLayout: in NSApplication.h, and I couldn’t find it. > That’s why I thought this action may be obsolete and unsupported. > > However… > > There are a lot of methods in the HTML docs for NSApplication. I thought the > provi

Re: NSPageLayout obsolete?

2014-08-19 Thread Daryle Walker
On Aug 18, 2014, at 10:35 PM, Kyle Sluder wrote: > On Aug 18, 2014, at 7:27 PM, Daryle Walker wrote: > >> On Aug 18, 2014, at 1:03 PM, Daryle Walker wrote: >> >>> I then added the same action to the app delegate (using >>> -runModelWithPrintInfo:). Worked fine when a window was open, but tha