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

2014-08-20 Thread Daryle Walker
goodness. But Safari doesn’t do this when switching between its text and web controls. Why? (I want to fix this annoyance.) — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list (Cocoa-dev

How can an instance KVO its own and super's attributes, especially with overrides?

2014-08-20 Thread Daryle Walker
observations on the four attributes I need? — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSPageLayout obsolete?

2014-08-19 Thread Daryle Walker
On Aug 18, 2014, at 10:35 PM, Kyle Sluder k...@ksluder.com wrote: On Aug 18, 2014, at 7:27 PM, Daryle Walker dary...@mac.com wrote: On Aug 18, 2014, at 1:03 PM, Daryle Walker dary...@mac.com wrote: I then added the same action to the app delegate (using -runModelWithPrintInfo:). Worked

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

2014-08-19 Thread Daryle Walker
is the home page’s URL - go Back once - error page, first edition…. I think I’m supposed to be resetting something between uses or some other misconfiguration is happening. Help. — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
go hard core on new apps NOT using the panel? — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
On Aug 18, 2014, at 8:36 AM, SevenBits sevenbitst...@gmail.com wrote: On Monday, August 18, 2014, Daryle Walker dary...@mac.com javascript:_e(%7B%7D,'cvml','dary...@mac.com'); wrote: I just read a post on StackOverflow that the “Page Setup…” menu item is obsolete, especially for non

Re: NSPageLayout obsolete?

2014-08-18 Thread Daryle Walker
On Aug 18, 2014, at 1:03 PM, Daryle Walker dary...@mac.com wrote: On Aug 18, 2014, at 12:30 PM, Kyle Sluder k...@ksluder.com wrote: Before you speculate like this, you should try the alternative. -beginSheet… is a drop-in replacement for -runModal. (Just use +[NSPrintInfo sharedPrintInfo

How unique does WebView's -groupName have to be?

2014-08-15 Thread Daryle Walker
I use a “[[NSUUID UUID] UUIDString]” to make every instance’s name unique. But the reference docs plus some sample code just use the XIB’s name. Am I overthinking it? What is this name for? Can we get away with multiple WebView instances within the same app having the same ID? — Daryle

When would I use this (im)mutable property pair setup? (Misunderstanding advanced KVO)

2014-08-15 Thread Daryle Walker
rid of them and stick to just a mutable-set property? (Delete the current “windowControllers” and rename the mutable variant.) But the text seemed like that would mess up KVO in a different way. — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

Abandoning NSDocument for an app

2014-08-14 Thread Daryle Walker
document-less project and a NSDocument-based one that I have to fix since I’m switching? — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

How should windowWillUseStandardFrame:defaultFrame: work? With a WebView?

2014-08-11 Thread Daryle Walker
the optimized space for a WebView be determined? (In other words, given an infinite screen size, how much space would a WebView need to show the entirety of its current page?) I read that you need some difficult internal calculation with JavaScript; I hope not. — Daryle Walker Mac, Internet, and Video

Re: NSProgressIndicator (bar) still displays when stopped

2014-08-08 Thread Daryle Walker
On Aug 8, 2014, at 9:58 AM, Keary Suska cocoa-...@esoteritech.com wrote: On Aug 7, 2014, at 10:23 PM, Daryle Walker dary...@mac.com wrote: have a bar-style NSProgressIndicator that has its “Display When Stopped” turned off and (initially) Indeterminate turned on. It (almost) properly

Re: NSProgressIndicator (bar) still displays when stopped

2014-08-08 Thread Daryle Walker
On Aug 8, 2014, at 12:55 PM, Keary Suska cocoa-...@esoteritech.com wrote: On Aug 8, 2014, at 10:25 AM, Daryle Walker dary...@mac.com wrote: On Aug 8, 2014, at 9:58 AM, Keary Suska cocoa-...@esoteritech.com wrote: Is the progress indicator loaded from a xib, with your initial settings

How do I hide a shorter control that's peeking out?!

2014-08-07 Thread Daryle Walker
that when the constraint between the tops of the window and web-view is programmatically changed to 0 pts, the top controls are (supposed to be) pushed upward out of view. — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

NSProgressIndicator (bar) still displays when stopped

2014-08-07 Thread Daryle Walker
on or if I change the display status of the toolbar above it. Changing the bar back to indeterminate (in the Finishing notification) makes no difference. — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing

Re: How do I hide/show a status bar?

2014-08-06 Thread Daryle Walker
On Aug 6, 2014, at 8:40 AM, Ken Thomases k...@codeweavers.com wrote: On Aug 5, 2014, at 11:36 PM, Daryle Walker dary...@mac.com wrote: I’m using the Size Inspector for my document window’s XIB to create a Small Bottom Border as a Content Border. From the top to the bottom of my window

Does webView:setToolbarsVisible: also mean the window's toolbar?

2014-08-06 Thread Daryle Walker
In the WebUIDelegate (unofficial) protocol, there are functions getting/setting toolbar-visibility like webView:setToolbarsVisible:. Are these just for custom toolbar-like controls you make at the top of your content area, or is the official NSToolbar for the NSWindow also included? — Daryle

Is substitution of block-function parameters OK when it's an object type?

2014-08-05 Thread Daryle Walker
Objective-C type? — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev

How well can genstrings process indirect names?

2014-08-05 Thread Daryle Walker
, or can I hide it between a macro constant? A macro function? A full-blown Objective-C expression? Is the genstrings program smart enough to handle NSStringFromClass([self class])? — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

How do I hide/show a status bar?

2014-08-05 Thread Daryle Walker
an effect. } //[window setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge]; //[window setFrame:windowFrame display:YES animate:YES]; self.webView.frame = webViewFrame; } //== — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

applicationWillFinishLaunching vs. applicationDidFinishLaunching for NSDocument-based apps

2014-08-04 Thread Daryle Walker
preferences before that. Do I got it right here? (If I’m right, this looks like a guide point for some Cocoa hint page.) Hmm, what kinds of code would have to be done in the “Did” version? The app code I’ve generally seen with a “Did” version could move it to a “Will” version. — Daryle Walker Mac

How do I get access to the control within a NSToolbarItem?

2014-08-03 Thread Daryle Walker
. Then I realized that the control I dragged from the XIB to the header file was a NSToolbarItem*, not the NSSegmentedControl* I was expecting. How do I get to that inner control? (Hopefully without wasting time making a subclass.) — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac

Re: How do I get access to the control within a NSToolbarItem?

2014-08-03 Thread Daryle Walker
On Aug 3, 2014, at 2:19 PM, Kyle Sluder k...@ksluder.com wrote: On Aug 3, 2014, at 11:11 AM, Daryle Walker dary...@mac.com wrote: I’m adding a combined Back/Forward toolbar button to my web browser project. I was going to enable/disable each button half like: - (void)webView:(WebView

Re: How do I get access to the control within a NSToolbarItem?

2014-08-03 Thread Daryle Walker
On Aug 3, 2014, at 3:35 PM, Jens Alfke j...@couchbase.com wrote: On Aug 3, 2014, at 11:56 AM, Daryle Walker dary...@mac.com wrote: I just noticed that myself. Is “(NSSegmentedControl *)self.toolbarBackForward.view”, a cast to a (2 layers down) subclass, the way you’re supposed to access

Re: About an alternative menu choice and toolbar buttons.

2014-08-03 Thread Daryle Walker
On Aug 3, 2014, at 1:33 PM, Daryle Walker dary...@mac.com wrote: Also, the top couple of pixels are trimmed off the segmented-control, and the control is off-center. (new, smaller, screenshot; not original attachment) I think the segmented-control was properly at the right edge

About an alternative menu choice and toolbar buttons.

2014-08-02 Thread Daryle Walker
, or should I use the WebKit-dev list? I think the latter feels more like cross-platform discussion instead of being Apple-platforms-specific. — Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com ___ Cocoa-dev mailing list

Re: Efficiently receiving data from an NSTask

2008-07-07 Thread Daryle Walker
the 1st char of a multi-byte sequence c 0xC0 == 0x80 - you have a later char of a multi-byte sequence - back up until you find a char of the 1st case otherwise - you have a one-byte char -- Daryle Walker Mac, Internet, and Video Game Junkie darylew AT mac DOT com

<    1   2   3