Hi,
How you guys slim down your view controllers?, sometimes you end up
implementing a lot of protocols in your view controller, so there’s a lot of
code inside the controller itself. Reading about how to slim down view
controllers in iOS I found that a common way is to move DataSources
I need to slim down mine as well.
Read the book Refactoring by Martin Fowler.
I'm not real sure how to proceed with mine; it grew organically.
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/
Available for Software Development in the
There was a great article on this just this on objc.io a while ago.
Certainly worth a few reads before it sinks in.
I'm a big fan of not lumping everything together in one class, but moving
certain responsibilities in to other classes and moving the appropriate code
there.
What's odd to me is
I have an NSCheckbox in a view based NSOutlineView. I want to support
Control-click for the right click menu when a user control-clicks on the
cell. Right click works perfectly already per the standard NSOutlineView.
However because the NSCheckbox is eating the click, it doesn't do a right
click
On Apr 1, 2015, at 11:14:43, Kyle Sluder k...@ksluder.com wrote:
… on your current setup. Depending on whether the CPU or GPU is used for
compositing the open panel's contents and/or your own views, and what
color profile is assigned to the screen on which these windows believe
themselves to
On Mon, Mar 30, 2015, at 11:00 AM, Steve Mills wrote:
On Mar 30, 2015, at 11:37:46, Mike Abdullah mabdul...@karelia.com
wrote:
Slightly less ugly idea, how about filling the background of your accessory
view with something like 1% alpha? Would that be enough to direct clicks to
the
On Apr 1, 2015, at 12:01 PM, Steve Mills sjmi...@mac.com wrote:
On Apr 1, 2015, at 09:49:29, Karl Moskowski kmoskow...@me.com wrote:
A few months back, we ran into a similar problem with accessory views in
sandboxed apps, though it was with NSSavePanel. The Open Cancel buttons
weren’t
On Apr 1, 2015, at 09:49:29, Karl Moskowski kmoskow...@me.com wrote:
A few months back, we ran into a similar problem with accessory views in
sandboxed apps, though it was with NSSavePanel. The Open Cancel buttons
weren’t clickable, but the keyboard shortcuts (esc enter) worked.
Well,
On Mar 30, 2015, at 11:24 AM, sjmi...@mac.com wrote:
Yes. Great googly moogly, that's it! I made a test project; clicking white
space in the checkbox label works. I turned on sandboxing for that project,
and it no longer works. Hello, radar://20346986.
A few months back, we ran into a
What's odd to me is that Apple preaches MVC, but then when we have the view
controller class, all to often the delegate is lumped into the same class,
Whoa, you're blaming Apple for this?
How is MVC, MVP or Apple forcing you to do this?
fostering code bloat and sorta going against
On Apr 1, 2015, at 21:17 , Charles Jenkins cejw...@gmail.com wrote:
for ch in String(char).utf16 {
if !set.characterIsMember(ch) { found = false }
}
Except that this code can’t possibly be right, in general.
1. A ‘unichar’ is a UTF-16 code value, but it’s not a Unicode code point.
On Apr 1, 2015, at 8:14 PM, Charles Jenkins cejw...@gmail.com wrote:
Given this code:
let someCharacter = str[str.endIndex.predecessor()]
How can I determine if someCharacter is whitespace?
import Foundation
func isChar(char: Character, inSet set: NSCharacterSet) - Bool {
// this
Given this code:
let someCharacter = str[str.endIndex.predecessor()]
How can I determine if someCharacter is whitespace?
—
Charles
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to
Thank you very much. :-) I had been trying to figure out how to use
NSCharacterSet, but I didn’t know the bit about converting to UTF-16 string
first.
—
Charles
On April 1, 2015 at 9:52:47 PM, Charles Srstka (cocoa...@charlessoft.com) wrote:
On Apr 1, 2015, at 8:14 PM, Charles Jenkins
On 2 Apr 2015, at 3:41 am, Sean McBride s...@rogue-research.com wrote:
Do you have 'validates immediately' on?
No -- I didn't actually have a binding at that stage, which is why I wasn't
seeing the result I expected. I'd missed the fact that bindings were the driver
of the error dialog.
--
On 2 Apr 2015, at 5:05 am, Sean McBride s...@rogue-research.com wrote:
I swear this was discussed, but can't find it in the archives...
It seems Interface Builder won't let me connect the 'formatter' outlet of a
textfield that's within a view-based tableview to a top-level formatter that
On Apr 1, 2015, at 3:00 PM, Jonathan Hull jh...@gbis.com wrote:
Have you tried just setting the textContentInset to make room for your
subview?
The inset by definition affects both the top *and* bottom. I only want the top.
--
Seth Willits
___
On Wed, 1 Apr 2015 13:33:15 +1100, Shane Stanley said:
I start a new project, then drag a text field with attached number
formatter into the window. I set the formatter's minimum to 0 and
maximum to 1. I run, then enter 3 and hit return. I get a beep, but no
error dialog. Yet I have existing
Is it showing up as part of the Copy Bundle Resources within your Target App's
Build Phases build settings?
Within Copy Bundle Resources, I have 212 items that are being copied into my
iOS project's bundle. Anything and everything that's part of the project that
is going in to the bundle is
Hi all,
I swear this was discussed, but can't find it in the archives...
It seems Interface Builder won't let me connect the 'formatter' outlet of a
textfield that's within a view-based tableview to a top-level formatter that
lives in the same nib. It complains:
Unsupported Configuration:
Is there a way to make a UITextField non-editable, but selectable and display
the edit menu? I have a field that gets its value elsewhere, and it would be
handy if the user could tap on it, which would show the edit menu with Copy
enabled. I've tried… well, lots of stuff. Or at least prevent
Have you tried just setting the textContentInset to make room for your subview?
I used that approach a couple of days ago to add room for a subview at the
bottom of a UITextView and it worked like a charm. Worth a shot here too.
Thanks,
Jon
On Apr 1, 2015, at 2:19 PM, Seth Willits
I have a text view where I added a subview at the top, and I want all of the
text to be below this subview. You can think of it like having a horizontal
ruler above the text view, but instead I want this view (it's not a ruler) _in_
the text view so that it scrolls with the text.
Here are two
23 matches
Mail list logo