Re: Core Data or not

2016-08-05 Thread Luther Baker
Little different perspective, Core Data tends to work drop dead easy for simple stuff. Small data set with simple functionality should work straight out of the box easy. And there is nothing wrong with creating a manual array of managed objects from a Core Data result set. I personally wouldn't s

iOS Status Bar and Modal Presentation

2016-07-04 Thread Luther Baker
I am "presenting" a view controller (*modaly*) on an iPhone and I'd like to hide the status bar while the *modal* view controller is visible. I've implemented prefersStatusBarHidden on the presented view controller and indeed, the status bar is hidden when the modal view controller is presented - b

Re: Supreme aggravation with UITextField controls and the #@Q% return button

2016-07-04 Thread Luther Baker
I think you're using the wrong method ... textFieldDoneEditing fires when a control loses focus, not when the "return" key gets tapped. Try implementing optional func textFieldShouldReturn(_ *textField*: UITextField

Re: iOS Hardware Keyboard Detection

2016-04-06 Thread Luther Baker
ly way to detect if a hardware keyboard is > present is through private APIs (and those only if a text view on text > field is currently the first responder). > > If anyone has a good solution, I’d be happy to hear it. > > Best, > Igor > > > > Am 06.04.2016 um 16:06 schrieb

Re: iOS Hardware Keyboard Detection

2016-04-06 Thread Luther Baker
mes with a built-in hardware keyboard. I'd be curious if the HIG speaks to this. Maybe it's just a 9.3 bug in the keyboard notifications On Tue, Apr 5, 2016 at 8:04 PM Luther Baker wrote: > I'm building an app for the iPad 2 and iPad Pro and need to present a > modal di

iOS Hardware Keyboard Detection

2016-04-05 Thread Luther Baker
I'm building an app for the iPad 2 and iPad Pro and need to present a modal differently, depending on whether or not there is a hardware keyboard attached. The keyboard notifications keep giving me the rect for the screen keyboard, whether or not it appears. Thanks, Luther ___

Re: Smoother becomeFirstResponder animation

2016-04-03 Thread Luther Baker
; Cheers. > Alex Zavatone > > On Apr 3, 2016, at 10:53 AM, Luther Baker wrote: > > > More information > > > > As an experiment, if I tie the DISMISS button solely to resigning first > > responder ... and wait some amount of time before tapping SAVE to simply >

Re: Smoother becomeFirstResponder animation

2016-04-03 Thread Luther Baker
I am having better luck with viewWillAppear and viewWillDisappear on the device proper as opposed to the simulator. It seems to work reasonably well for what I want. On Sun, Apr 3, 2016 at 9:53 AM, Luther Baker wrote: > More information > > As an experiment, if I tie the DISMISS butt

Re: Smoother becomeFirstResponder animation

2016-04-03 Thread Luther Baker
becomeFirstResponder from the presented view controller directly to the textfield. -Luther On Sun, Apr 3, 2016 at 9:26 AM, Luther Baker wrote: > I am presenting a newly instantiated modal view controller (iOS, shows up > from the bottom) and I'd like to have one of the text fields

Smoother becomeFirstResponder animation

2016-04-03 Thread Luther Baker
I am presenting a newly instantiated modal view controller (iOS, shows up from the bottom) and I'd like to have one of the text fields immediately becomeFirstResponder. *Approach #1:* If I invoke this directly in the presented view controller's viewWillAppear, I see some presentation animation ar

Re: #selector noob question

2016-03-22 Thread Luther Baker
Thanks for posting this extended answer! On Mon, Mar 21, 2016 at 11:34 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Mar 21, 2016, at 20:27 , Eric E. Dolecki wrote: > > > > Quick question. If I use #selector(funcName) - does it always send an > > argument of the obj if the

Re: UIDocument with NSFileWrapper

2016-03-21 Thread Luther Baker
Thanks for posting this. Exploring UIDocument and caching/parsing JSON instead of CoreData for a service based mobile app that must support offline mode ... and looking forward to considering where you landed. On Mon, Mar 21, 2016 at 5:11 PM wrote: > > > On Mar 21, 2016, at 2:08 AM, Quincey Morri

Re: UICollectionView Moving

2016-03-10 Thread Luther Baker
an empty section. You need to help it out by overriding the > following method on your layout: > > - (NSIndexPath *)targetIndexPathForInteractivelyMovingItem:(NSIndexPath > *)previousIndexPath withPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0); > > Luke > > On Mar 9, 2016

Re: UICollectionView Moving

2016-03-09 Thread Luther Baker
umn (section), should I put at least one, invisible item in the column (section) to keep it available as a drag target? Hope that makes sense - I tend to be wordy. Thanks, -Luther On Tue, Mar 8, 2016 at 12:05 AM, Luther Baker wrote: > Now we're cooking with GAS!!! > > over

Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
teaching a cell to respond to an attribute I merely meant that it > should override setLayoutAttributes: and do something in there with the > relevant property. Hope that helps. > > Luke > > On Mar 7, 2016, at 9:39 PM, Luther Baker wrote: > > > teach your cell classes to res

Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
s ... ?) Thanks, -Luther On Mon, Mar 7, 2016 at 2:45 PM, Luke Hiesterman wrote: > You can create your own subclass of UICollectionViewLayoutAttributes and > add something like an “isMoving” property to that. Then teach your cell > classes to respond to that property by changing the background color. > &g

Re: UICollectionView Moving

2016-03-07 Thread Luther Baker
k your return value for this method in your layout: > > - (UICollectionViewLayoutAttributes > *)layoutAttributesForInteractivelyMovingItemAtIndexPath:(NSIndexPath > *)indexPath withTargetPosition:(CGPoint)position NS_AVAILABLE_IOS(9_0); > > Luke > > On Mar 7, 2016, at 9:55 AM

UICollectionView Moving

2016-03-07 Thread Luther Baker
I followed the directions here, http://nshint.io/blog/2015/07/16/uicollectionviews-now-have-easy-reordering/ - to add iOS9 style dragging to my UICollectionView - and it sort of works. As described in the article, I added a long press gesture recognizer and wired it in to make calls on the collect

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Luther Baker
Thanks for posting those great references Bill! Luther On Sat, Mar 5, 2016 at 1:04 PM Bill Cheeseman wrote: > > > On Mar 5, 2016, at 1:35 PM, Gary L. Wade > wrote: > > > > On Mar 2, 2016, at 11:20 AM, Bill Cheeseman > wrote: > > > >> Broadening my horizons is *alw

Re: Starting out with storyboards (on Mac)

2016-03-01 Thread Luther Baker
> But where does the default one come from? Here are some steps for an iOS project - maybe it will be in the same area. Select and open the storyboard in the IDE. Find the View Controller scene you think is showing up by default. Open the scene (click the arrow) and select the actual view control

Re: iOS: Using AppDelegate as an app-wide singleton

2015-12-01 Thread Luther Baker
The conversation here is pretty loose ... and so everyone might be right in what they are intending to convey... ;-) but I thought I'd just put in a vote to stop using the term "Singleton" for this access pattern. It isn't a Singleton (unless there is historical signficance that grandfathers this i

Re: Auto Layout Problems

2015-09-04 Thread Luther Baker
I may not be following the entire thread very well - but as you likely know, with autolayout, the scrollview's content size is literally determined by its contents. It is generally simple to bind the scrollview edges to the parent you mention but I think your next step is to properly size the Stack

Re: Collection Views Breaking

2015-05-21 Thread Luther Baker
ps it is with > useLayoutToLayoutNavigationTransitions? I haven't used that before. > > Anyway that should get you started. > > On May 20, 2015, at 7:45 AM, cocoa-dev-requ...@lists.apple.com wrote: > > > > > --

Re: Collection Views Breaking

2015-05-20 Thread Luther Baker
ould be interesting to see just what gets unwired here. > > Have you set an exception breakpoint to tell you exactly what is breaking? > > On May 20, 2015, at 12:46 AM, Luther Baker wrote: > > > I've got a simple iOS project consisting of 2 collection view control

Collection Views Breaking

2015-05-19 Thread Luther Baker
I've got a simple iOS project consisting of 2 collection view controllers and a navigation controller. Tapping any item in the first collection view simply pushes the second collection view on the stack. Problem is, when I tap "< Back" and then manually scroll up ... the app crashes with a EXC_BA

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-06 Thread Luther Baker
On Wed, May 6, 2015 at 11:54 AM, Jens Alfke wrote: > > > On May 6, 2015, at 8:36 AM, Uli Kusterer > wrote: > > > > So you're not setting a constraint on the *document* view? How do you > expect it to know how to constrain that view otherwise? > > The size of the document view is fundamentally un

Re: Help: NSScrollView is resizing its documentView down to (0, 0)

2015-05-05 Thread Luther Baker
Not exactly the same but I found this doc helpful. https://developer.apple.com/library/ios/technotes/tn2154/_index.html Luther > On May 5, 2015, at 7:58 PM, dangerwillrobinsondan...@gmail.com wrote: > > If you have AutoLayout on in a window it's actually on for all views. > NSScrollView and it

Re: how to slim down view controllers?

2015-04-01 Thread Luther Baker
> 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 compar

Scrolling while resizing a UITableView with UITextFields

2015-03-21 Thread Luther Baker
Hi, I have a question about parallel scrolling (I think) in iOS. Let's say I've got a UITableView with > 20 or so rows where each cell's contentView essentially contains a simple UITextField. Assume I am not using a UITableViewController for the time being (I've actually got 5 of these tableviews

Re: NSSplitView parallel motion

2014-11-09 Thread Luther Baker
FWIW ... achieved most of this by nesting split views and leveraging autolayout constraints and priorities, almost no delegate code. I'm still not sure how Mail pulls off the disappearing Source animation though :-) Thanks, -Luther On Sat, Nov 8, 2014 at 2:58 PM, Luther Baker wrote:

NSSplitView parallel motion

2014-11-08 Thread Luther Baker
Is there a "conventional way" to implement parallel divider bar motion in an NSSplitView? While resizing a window, I get the general behavior I want by setting the holding properties of 3 view split view to 200, 250, 100 respectfully. While randomly resizing the view, the 3rd view collapses first,

Re: NSSplitView divider position

2014-11-08 Thread Luther Baker
Thanks Ken. On Sat, Nov 8, 2014 at 9:02 AM, Ken Thomases wrote: > On Nov 8, 2014, at 8:19 AM, Luther Baker wrote: > > > Is there a direct way to determine the positions of the dividers in > > NSSplitView. > > No. > > > If not, are most people calculating thi

NSSplitView divider position

2014-11-08 Thread Luther Baker
Is there a direct way to determine the positions of the dividers in NSSplitView. I'm implementing splitView:additionalEffectiveRectOfDividerAtIndex: and would like to create a rect relative to the current position of the divider. If not, are most people calculating this by adding the widths

Re: Editing NSOutlineView Group Item

2014-11-07 Thread Luther Baker
http://openradar.appspot.com/18906942 On Wed, Nov 5, 2014 at 7:23 AM, Luther Baker wrote: > Thanks and thanks. I'll follow up on both your suggestions. > > Again, many thanks for your time Quincey! > > Luther > > > On Nov 5, 2014, at 2:03 AM,

Re: Editing NSOutlineView Group Item

2014-11-05 Thread Luther Baker
Thanks and thanks. I'll follow up on both your suggestions. Again, many thanks for your time Quincey! Luther > On Nov 5, 2014, at 2:03 AM, Quincey Morris > wrote: > >> On Nov 4, 2014, at 14:39 , Luther Baker wrote: >> >> I've created a project on g

Re: Editing NSOutlineView Group Item

2014-11-04 Thread Luther Baker
I've created a project on github that essentially duplicates the problem I'm having. $ git clone https://github.com/EffectiveProgramming/LBOutlineViewDemo.git If you have time, please feel free to check it out and let me know if you can see what I'm doing wrong. Thanks, -Luther On Tue, Nov

Re: Editing NSOutlineView Group Item

2014-11-04 Thread Luther Baker
then stopped. /// outlineView:isItemExpandable: - item=selected item - returns YES /// Thanks, -Luther On Tue, Nov 4, 2014 at 7:12 AM, Luther Baker wrote: > I was hoping these changes would do it ... but unfortunately, I'm still > getting nothing > > You'

Re: Editing NSOutlineView Group Item

2014-11-04 Thread Luther Baker
com> wrote: > On Nov 3, 2014, at 04:12 , Luther Baker wrote: > > > > Or perhaps you are mis-tracking the selected item. > > I've double checked what I thought I knew -- but as you imply, who knows > at this point. > > > You are mis-tracking the selected it

nested split views

2014-11-03 Thread Luther Baker
One more question about split views. My app's outer shell is a top level, 3 tiered split view with the idea that the middle view could have ANYTHING in it. A diagram, a browser, a tree. In fact, the middle view could contain yet another split view if I come up with a visualization that requires th

Re: Editing NSOutlineView Group Item

2014-11-02 Thread Luther Baker
a deep enough test data set to see if I simply need to load the parent or if I need to reload the entire table Thanks, -Luther On Sun, Nov 2, 2014 at 4:42 PM, Luther Baker wrote: > Indeed ... I was incorrectly using reloadDataForRowIndexes:columnIndexes: > ... and not relo

Re: Tracking Focus Between NSOutlineViews

2014-11-02 Thread Luther Baker
Again - thanks for the extended notes here. I really appreciate the extra context I get form this group. Thanks, -Luther On Sun, Nov 2, 2014 at 6:56 PM, Graham Cox wrote: > > On 3 Nov 2014, at 11:13 am, Luther Baker wrote: > > > You start the app and if you select a mil

Re: Tracking Focus Between NSOutlineViews

2014-11-02 Thread Luther Baker
potentially fine way to build user facing software? Thanks, Luther > On Nov 2, 2014, at 5:42 PM, Graham Cox wrote: > > >> On 3 Nov 2014, at 9:50 am, Luther Baker wrote: >> >> I have multiple NSOutlineView objects on the screen at one time. >> >> As you selec

Re: Tracking Focus Between NSOutlineViews

2014-11-02 Thread Luther Baker
ind, I was thinking "It's always an editor of whatever is currently in focus.". Would appreciate any alternatives or validation either way. Thanks as always for lending your skills to this discussion! Thanks, Luther > On Nov 2, 2014, at 5:27 PM, Graham Cox wrote: >

Tracking Focus Between NSOutlineViews

2014-11-02 Thread Luther Baker
I have multiple NSOutlineView objects on the screen at one time. As you select items in secondary outline views, the existing selections in the other outline views stay selected, and generally turn from a selected BLUE to an alternate selected GRAY. That is fine and expected. Now, off to the righ

Re: Editing NSOutlineView Group Item

2014-11-02 Thread Luther Baker
Indeed ... I was incorrectly using reloadDataForRowIndexes:columnIndexes: ... and not reloadItem:reloadChildren. Thank you, -Luther On Sun, Nov 2, 2014 at 4:35 PM, Graham Cox wrote: > > On 3 Nov 2014, at 9:18 am, Ken Thomases wrote: > > > This is not correct. Group items are items for which

Editing NSOutlineView Group Item

2014-11-01 Thread Luther Baker
I've got an NSOutlineView backed by a manually mapped core data based document model of which I can save edits to the persistence store just fine. I have created a detail view which can update the text of the selected item - and for the most part, telling the outline view to reload data for the se

Re: NSComboBox in the tab ring

2014-10-29 Thread Luther Baker
Yep - I ended up going with a Pop Up Button for the reason's you've both mentioned. Thanks for replying with a bit of explanation and suggestions! -Luther On Wed, Oct 29, 2014 at 3:16 PM, Graham Cox wrote: > > On 19 Oct 2014, at 3:14 pm, Luther Baker wrote: > > >

Re: Extended Save Dialog Crashing

2014-10-28 Thread Luther Baker
to you all! -Luther On Tue, Oct 28, 2014 at 1:29 AM, Kyle Sluder wrote: > > > Sent from my iPad > > > On Oct 27, 2014, at 8:33 PM, Luther Baker wrote: > > > > I'm writing my first Document based app for OSX and have reached a spot > > where I'

Extended Save Dialog Crashing

2014-10-27 Thread Luther Baker
I'm writing my first Document based app for OSX and have reached a spot where I'd like to actually save and open a file. It is a Core Data backed Document within which I create some arbitrary data and display it via two NSOutlineViews. I also have the ability to edit the data inline and save it bac

Re: Editing an NSOutlineView item

2014-10-27 Thread Luther Baker
Thanks Ken. Just what I needed. -Luther On Mon, Oct 27, 2014 at 7:47 PM, Ken Thomases wrote: > On Oct 27, 2014, at 7:02 PM, Luther Baker wrote: > > > I've successfully built an NSOutlineView and configured the items for > > editing. Got that working. > > >

Editing an NSOutlineView item

2014-10-27 Thread Luther Baker
I've successfully built an NSOutlineView and configured the items for editing. Got that working. Now, in my delegate/datasource, I am implementing - (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item { NSLog(@"hi"); }

Custom NSTableRowView Question

2014-10-20 Thread Luther Baker
I've created and I'm displaying a custom NSTableRowView but I'm having trouble settings its background color. I tried setting it in the init'r but it is getting overwritten. I can intercept the calls to [NSTableRowView setBackgroundColor:] and override the color but before doing that, I'd like to

Re: Wiring up MainMenu.xib

2014-10-19 Thread Luther Baker
> On Oct 19, 2014, at 7:20 PM, Graham Cox wrote: ... > Maybe you're joking, but, well, that's not a "trick". It's a key part of > Cocoa design. Good catch. I called it a "trick" as it surprised me that it worked as such. Indeed, I did not really understand why it worked nor how my IBActions w

Re: Wiring up MainMenu.xib

2014-10-19 Thread Luther Baker
wire that up in IB. You just need to implement the > action in your window controller. > > > > On Oct 19, 2014, at 8:36 AM, Luther Baker wrote: > > > >> I created a Document based app and Xcode created two XIB - MainMenu.xib > and > >> Document.xib.

Wiring up MainMenu.xib

2014-10-19 Thread Luther Baker
I created a Document based app and Xcode created two XIB - MainMenu.xib and Document.xib. Per the online docs for subclassing NSWindowController, I created my own NSWindowController subclass and set that as the "File's Owner" for the Document.xib and so far, everything has worked fine. Now, I adde

NSComboBox in the tab ring

2014-10-18 Thread Luther Baker
Is it possible to keep an NSComboBox in the tabbing ring if I set its "Behavior" to "Selectable". Tabbing reaches the control if the textfield is editable but I don't want to allow the user to type randomly into the text field ... but unfortunately, once I remove its editability, the tabbing cycle

Re: Document style programming

2014-10-18 Thread Luther Baker
nd now there is a persistent store of some sort, albeit still nothing that I explicitly saved anywhere. Sort of trippy unless you expect or understand why. At any rate, thanks for the clarifications! -Luther On Sat, Oct 18, 2014 at 11:11 AM, Mike Abdullah wrote: > > > On 18 Oct 2014, at

Re: Saving a Document style app

2014-10-18 Thread Luther Baker
Awesome! Thanks Mike. By the way, I'm a happy Hit List user! -Luther On Sat, Oct 18, 2014 at 11:10 AM, Mike Abdullah wrote: > > > On 18 Oct 2014, at 17:06, Luther Baker wrote: > > > > I'd like to save my Document based app in the bundle style format. IE: &

One more Document app style question

2014-10-18 Thread Luther Baker
Coming from an iOS background, I'm used to seeing (and encapsulating) the creation of key Core Data components (persistent store, location, contexts). Everything is pretty explicit and consequently easy to follow. When I use Xcode to generate a desktop Document based app for me, that functionality

Re: Document style programming

2014-10-18 Thread Luther Baker
ntext into the Document's datastore? Thanks, -Luther On Sat, Oct 18, 2014 at 11:03 AM, Mike Abdullah wrote: > When using NSPersistentDocument it takes over responsibility for saving > the context. You should not save the context yourself. > > > On 18 Oct 2014, at 17:00, L

Saving a Document style app

2014-10-18 Thread Luther Baker
I'd like to save my Document based app in the bundle style format. IE: I'd like to save things in a directory - like apps like OmniOutliner do. Out of the box, I get the option to save as sqlite, binary or XML. What I'd like is to save a 'bundle' with my own extension and nest things like the the

Document style programming

2014-10-18 Thread Luther Baker
Hi, I am creating a Desktop issue tracking app using core data and the NSDocument framework - so yes, the Xcode wizard extended NSPersistentDocument which provides me with an NSManagedObjectContext. My question is - if I start working in the app, creating issues for instance ... when I go to actu

Re: Bottom - Source/Accessory ToolBar question

2014-10-13 Thread Luther Baker
Thanks both of you! -Luther On Mon, Oct 13, 2014 at 7:21 PM, Ken Thomases wrote: > On Oct 13, 2014, at 6:54 PM, Luther Baker wrote: > > > A few years back, many Mac apps had a similar looking bottom bar on the > > left hand side of the app. Specifically, apps that ha

Bottom - Source/Accessory ToolBar question

2014-10-13 Thread Luther Baker
A few years back, many Mac apps had a similar looking bottom bar on the left hand side of the app. Specifically, apps that had a "Source" style outline view on the left hand side had this silverish gradient styled bottom bar that often consisted of "plus" and "minus" buttons on the left and a gripp

Re: Displaying Sheets

2014-10-07 Thread Luther Baker
That was it! Thanks, -Luther On Tue, Oct 7, 2014 at 7:32 AM, Mike Abdullah wrote: > > > On 7 Oct 2014, at 13:29, Luther Baker wrote: > > > > I'd like to display a sheet but when I do, it isn't sliding down from the > > top of my window. It is just showin

Displaying Sheets

2014-10-07 Thread Luther Baker
I'd like to display a sheet but when I do, it isn't sliding down from the top of my window. It is just showing up. I am building a default Document based application and assigning the Document.xib window to an IBOutlet I've created - invoking "beginSheet" on that mainWindow with another temporary

Document Based app with SQLite backing store

2014-10-05 Thread Luther Baker
Hi, I'm learning a bit about Cocoa Desktop development and I'd like to create a Document based app with a SQLite backing store. First of all, the wizard/template does this just fine for me --- but the resulting class, XIB and sqlite store are all called Document. I'd like to change that name ...

kanban board, story map

2014-10-04 Thread Luther Baker
Hi, I'm an iOS developer exploring/fairly new to desktop development - and I'd like to implement something like a kanban board as a desktop application. A kanban board is essentially a set of columns and swimlanes - and at a minimum, requires the ability to add "cards" to columns as well as the a

Re: Nested NSSplitViews and AutoLayout

2014-09-27 Thread Luther Baker
No! I did not know that. That is working much better for me. Thank you. -Luther On Sat, Sep 27, 2014 at 3:06 AM, Ken Thomases wrote: > On Sep 27, 2014, at 2:46 AM, Luther Baker wrote: > > > I'm creating a simple hierarchical notebook that essentially consists of > 4 >

Nested NSSplitViews and AutoLayout

2014-09-27 Thread Luther Baker
I'm an iOS developer dabbling in some desktop development ... I'm creating a simple hierarchical notebook that essentially consists of 4 columns: an outline view, a table view, a table view and then a simple text view (the widths of each should be adjustable). To make this happen, I thought I'd us

Re: iOS database within sandbox

2014-08-22 Thread Luther Baker
I'm not sure how helpful this is but rechnically, Core Data is an ORM - an object to relational mapping framework. Also realize that Core Data is most often configured to use SQLite as its backing store. In addition the, Xcode ships with a nice CoreData/ORM editor which often makes Core Data eas

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: UIScrollView question

2014-07-27 Thread Luther Baker
; quinceymor...@rivergatesoftware.com> wrote: > On Jul 26, 2014, at 22:19 , Luther Baker wrote: > > Are you hoping that when the keyboard comes up -- it shortens the parent > view you are referring to? > > > No, it’s more complicated than that, but I think it’s the *question*

Re: UIScrollView question

2014-07-26 Thread Luther Baker
Yep - I'm good with the keyboard part (ie: I can tell how much of the screen will disappear) ... > won’t a “bottom space to superview” Are you hoping that when the keyboard comes up -- it shortens the parent view you are referring to? To date, that has not been my experience. The keyboard just sh

UIScrollView question

2014-07-26 Thread Luther Baker
I have a pretty good frames based background but I'd like to consider an iPhone screen done with AutoLayout on a UIScrollView such that the bottom UITextView grows vertically to fill the vertical space remaining from the text view to the bottom of the device. UIScrollView parent [Label]

Re: Retina and VFL vs Programmatic Layout

2014-07-26 Thread Luther Baker
Ah, I forgot to add constraints to establish the origin. Got it. Thanks, -Luther On Sat, Jul 26, 2014 at 10:44 AM, Luther Baker wrote: > In the following example, I'm displaying a child view in a container view > attached to a view controller's view property ... on

Retina and VFL vs Programmatic Layout

2014-07-26 Thread Luther Baker
In the following example, I'm displaying a child view in a container view attached to a view controller's view property ... on a Retina iPhone simulator. EXPECTED: The VFL constraints cause the child to fill the screen whereas UNEXPECTED: the programmatic constraints cause the child to fill exact

Re: UIScrollView contentSize question

2014-06-22 Thread Luther Baker
tackoverflow.com/questions/16889123/how-to-add-objects-to-a-uiscrollview-that-extend-beyond-uiview-from-storyboard/ and then watched a bit of his video here https://www.youtube.com/watch?v=PgeNPRBrB18&feature=youtu.be ) On Sun, Jun 22, 2014 at 6:52 PM, Luther Baker wrote: > Yaay! > >

Re: UIScrollView contentSize question

2014-06-22 Thread Luther Baker
Yaay! On Sun, Jun 22, 2014 at 12:10 AM, Kyle Sluder wrote: > On Jun 21, 2014, at 9:13 PM, Luther Baker wrote: > > > > I want a 2-page horizontally scrolling UIScrollView on a simple > > UIViewController. Very similar to what Twitter does to swipe between > Home, &

UIScrollView contentSize question

2014-06-21 Thread Luther Baker
I want a 2-page horizontally scrolling UIScrollView on a simple UIViewController. Very similar to what Twitter does to swipe between Home, Discover and Activity views. Using storyboards, dropping a UIScrollView on a UIViewController is a piece of cake. Pinning the UIScrollView to the top and botto

Re: mavericks style tabs

2014-05-18 Thread Luther Baker
>> But you should tell us more so that we can get some additional information >> and give better advice. Sure. I'm writing a diagramming tool and I'd like multiple diagrams open simultaneously. Using the NSTabView and custom drawing as described seems like a viable option to me. _

mavericks style tabs

2014-05-18 Thread Luther Baker
Trying my hand at some Cocoa development ... is there an SDK around the tabs used in Finder or Safari? If not, is there a popular library that folks are using ( https://github.com/rsms/chromium-tabs ?) or is this something folks are generally building from ground up? Thanks, -Luther _

Re: Good idea/bad idea?

2014-04-24 Thread Luther Baker
Not native and I've no idea when or if this is a good idea ... nor am I sure how much typing you want to do ... but you _could_ create a class convenience method for this x = [Thing defaultIfNil:x]; With shorter or longer names as you see fit ... down to possibly: x = [Thing :x] I've

Navigation Design question

2014-04-13 Thread Luther Baker
Hello all, I've run into an issue a few times and I'd like to see if someone has a good design suggestion to address my problem. Consider an iPad or iPhone application based on a UINavigationController - that displays a 'menu' button in the UINavigationBar. The navbar renders UIBarButtonItems ...

Re: What do you guys use to convert an XSD to objective C data classes/structures?

2014-03-25 Thread Luther Baker
> We have a lot of legacy systems at my latest gig that all use and output XML data. I remember building a few data-driven webpages completely in XML and XSLT --- and I clearly remember thinking it was the _future_! :-) I must admit up front that I'm not sure which general approach would be best

Re: VC# vs. ObjC and partial abstract classes

2014-03-19 Thread Luther Baker
> And more to the point, I think the original poster already knows what you > are saying. I think he is asking for thoughts regarding his approach to > simulating a notional Abstract Class via mix of @protocols and @classes in > Objective-C. He clearly knows he can't do it with @protocols alone. >

Re: VC# vs. ObjC and partial abstract classes

2014-03-19 Thread Luther Baker
On Wed, Mar 19, 2014 at 12:14 AM, Sixten Otto wrote: > On Tue, Mar 18, 2014 at 7:29 PM, Luther Baker > wrote: > > > A _better_ analogy to an Objective-C @protocol would be a formal Java > > interface. > > > > Sure. And the same in C# (which the OP was asking

Re: VC# vs. ObjC and partial abstract classes

2014-03-18 Thread Luther Baker
On Tue, Mar 18, 2014 at 8:11 PM, Kyle Sluder wrote: > On Tue, Mar 18, 2014, at 05:30 PM, William Squires wrote: > > Hi all! > > Obviously (IIRC) a pure abstract class would map to a formal protocol > > in ObjC (or a class interface in languages such as REALbasic/Xojo, or > > VB 6). My best

Re: disk operations - mounting images I've created manually via Disk Utility

2014-03-16 Thread Luther Baker
and use > openURL:withApplication: to make sure Disk Utility mounts the image, not > another tool the user did associate with .dmgs or .sparsebundle > > >> On 16 Mar 2014, at 05:35, Luther Baker wrote: >> >> Indeed! >> >> That works perfectly ..

disk operations - mounting images I've created manually via Disk Utility

2014-03-15 Thread Luther Baker
I'm an iOS developer talking a walk on the OSX side and have a question about programmatically mounting sparse bundles ... or really just any dmg. My experimental project is to write a little statusbar application to mount and unmount disk images. I've created a few of these images in my own "Volu

Re: secure uitextfield is not secure

2014-03-05 Thread Luther Baker
Hey -- this is all good stuff! I'm definitely a bit less cynical about this topic now. Thanks for the virtual turn-around! On Wed, Mar 5, 2014 at 5:41 PM, Kyle Sluder wrote: > On Wed, Mar 5, 2014, at 02:57 PM, Quincey Morris wrote: > > I agree with the earlier post which said (more or less)

Re: secure uitextfield is not secure

2014-03-05 Thread Luther Baker
re has to be _some_ reason we haven't uncovered yet :) Wanted to see if anyone had an elegant solution or if I'd missed something in the API. On Wed, Mar 5, 2014 at 2:52 PM, Fritz Anderson wrote: > On 5 Mar 2014, at 1:17 PM, Luther Baker wrote: > > > I'm generally a

secure uitextfield is not secure

2014-03-05 Thread Luther Baker
I'm generally a big fan of Cocoa Touch - but why does the "secure" option on a UITextField still display the character you are typing? And, is there any way I can turn this off? Its generally hard to get non-employee AD credentials created or to stand up DEV Active Directory services ... so every

Re: Validation of fields in a navigation stack

2014-01-09 Thread Luther Baker
Create your own UIBarButtonItem button ... set it on the navigation item's leftBarButton property. Do what you want when they tap it with your own handler. The left bar button will "cover" the back button. > On Jan 9, 2014, at 6:22 PM, Rick Mann wrote: > > What's the right way to validate fiel

Re: iPad keyboards

2013-12-17 Thread Luther Baker
On Thu, Dec 12, 2013 at 3:08 PM, Rick Mann wrote: > > That's good to know; I thought they were requiring iOS 7. > > https://developer.apple.com/news/index.php?id=12172013a#top > Even so, does an iOS 6 SDK-based app not get all iOS 7 styling? I'd try > the experiment myself, but it's a bit of wo

Re: iPad keyboards

2013-12-12 Thread Luther Baker
On Dec 12, 2013, at 3:38 AM, Rick Mann wrote: > I thought you had to use Xcode 5 to submit now, Xcode 5 can build with the 6 SDK. > and I thought it had to be linked against iOS 7. Dunno > I'm pretty sure Apple rejected one of my binaries because of that. > Might try to clarify for which

Re: iPad keyboards

2013-12-11 Thread Luther Baker
Technically, an iPad running iOS7 can run apps in iOS6 compatibility mode. The keyboard is a dead giveaway. It is similar to an original OSX upgrade from OS9, where some OS9 apps could run within OSX under an OS9 compatibility mode. Or think of it like running a windows app in Parallels on a Mac.

Re: Autolayout Freespace

2013-12-11 Thread Luther Baker
nderstand priorities? Can these act as weights at all ... or does the highest priority just win? Thanks. On Wed, Dec 11, 2013 at 11:28 PM, wrote: > > > Sent from my iPhone > > > On 2013/12/12, at 13:50, Luther Baker wrote: > > > > Is there a way autolayout can b

Autolayout Freespace

2013-12-11 Thread Luther Baker
Is there a way autolayout can be told to proportionally divide available free space amongst a set of views? For example (please ignore the actual 'VFL' and consider the following horizontal layout string as pseudo code): H:|-[FirstName]-[LastName]-[SocialSecurity]-[Birthday]-[Age]-| Assume t

Re: Autolayout Greedy Fill question

2013-12-04 Thread Luther Baker
Yes! Along with content edge insets and compression resistance, I'm now getting the behavior I was looking for. Thank you! On Wed, Dec 4, 2013 at 5:37 PM, Charles Srstka wrote: > On Dec 4, 2013, at 5:27 PM, Luther Baker wrote: > > > Given the following controls: > >

  1   2   >