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

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

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
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-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-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: 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: #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

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

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
; 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 >

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

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

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

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

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

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

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 ...

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

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

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

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

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

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

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: 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: &

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

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

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

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.

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

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

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"); }

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. > > >

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: 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'

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

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

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

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

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-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

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
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-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-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,

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

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

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

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

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: Subversion and Interface Builder

2009-09-14 Thread Luther Baker
+1 for Mercurial. I use it regularly with iPhone and Mac development and have never had a problem. http://mercurial.berkwood.com/ - scroll for the Mac version. -Luther On Fri, Sep 11, 2009 at 10:26 AM, Jens Alfke wrote: > > On Sep 11, 2009, at 1:10 AM, Alexander Hartner wrote: > > Thanks fo

CoreData and NSTimeInterval

2009-09-16 Thread Luther Baker
I'm creating a timesheet/stopwatch application of sorts for the iPhone. I am using an NSDate in CoreData and following this pattern: 1) Start: Session* session = (Session*)[NSEntityDescription insertNewObjectForEntityForName:@"Session" inManagedObjectContext: managedObjectContext_]; session.star

NSInvocation or NSTimer with an arg

2009-09-16 Thread Luther Baker
I'd like to fire a simple callback every .1 of second (yes, my stopwatch style app). But in that callback, I need access to a corresponding UITableViewCell. Unfortunately, I don't see a way to choose a selector with a UITableViewCell argument for the oneliner: [NSTimer scheduledTimerWithTimeInterv

Re: NSInvocation or NSTimer with an arg

2009-09-16 Thread Luther Baker
ry visible cell when the cell's shift down? I need to store something in userInfo that tells me or helps me definitively find the correct Cell to update ... Thanks, -Luther On Wed, Sep 16, 2009 at 8:08 PM, Hank Heijink (Mailinglists) < hank.l...@runbox.com> wrote: > On Sep 16

Re: CoreData async fetch request

2009-10-02 Thread Luther Baker
I'm fairly new to Core Data but I do believe that when tieing an NSFetchedResultsController with an NSManagedObjectContext and an NSTableViewController, (yes, this is an iPhone example) indeed, results for the NSTableView are retrieved lazily, ie: as necessary. I do not know how this is implemente

Derived Value and Core Data

2009-11-13 Thread Luther Baker
Using Core Data - I have created a named NSManagedObject that has both a start time and end time. In an iphone app (UITableViewController), I'd like to display a list of these *Sessions* and I'd like the SECTION headers to break per day, based on a Session's start *date*. So, I'm storing a *time*

Re: Which iPhone Program?

2010-03-23 Thread Luther Baker
I have the "company" license and can create multiple developer seats. I don't think the core difference between company and enterprise is in how many developer seats you create. Instead, I think the difference is in how your application is distributed. I understood an enterprise license to fit th

Re: Looking for examples of UIScrollView using Core Data

2010-04-17 Thread Luther Baker
Try this Core Data tutorial: http://developer.apple.com/iphone/library/documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html You likely need to better understand the relationship between a UITableViewController and an NSFetchedResultsController ... -Luther On

Re: UINavigationBar button look?

2011-08-10 Thread Luther Baker
http://touchthatfruit.posterous.com/multiple-uibarbuttonitems-in-uinavigationbar On Wed, Aug 10, 2011 at 11:33 PM, Rick Mann wrote: > Is there any way to make a UIButton that looks like the rectangular buttons > with rounded corners, and text titles, that appear in a UINavigationBar? I > have a

Re: UINavigationBar button look?

2011-08-11 Thread Luther Baker
ation/uikit/reference/UINavigationBar_Class/Reference/UINavigationBar.html#//apple_ref/occ/instp/UINavigationBar/translucent On Thu, Aug 11, 2011 at 5:31 PM, Rick Mann wrote: > In the end, this doesn't work. The black toolbar does not match the black > nav bar. > > On Aug 10, 2

confused by what seems to be a recursive declaration/definition

2011-08-11 Thread Luther Baker
What is this statement actually doing? static void *AVPlayerDemoPlaybackViewControllerRateObservationContext = & AVPlayerDemoPlaybackViewControllerRateObservationContext; Isn't the right side evaluated first? But it doesn't yet exist? It compiles ... but seems to be a recursive definition?? http

Re: confused by what seems to be a recursive declaration/definition

2011-08-11 Thread Luther Baker
== AVPlayerDemoPlaybackViewControllerRateObservationContext) { Thanks! -Luther On Thu, Aug 11, 2011 at 6:26 PM, Jens Alfke wrote: > > On Aug 11, 2011, at 4:10 PM, Luther Baker wrote: > > static void *AVPlayerDemoPlaybackViewControllerRateObserv

Re: confused by what seems to be a recursive declaration/definition

2011-08-11 Thread Luther Baker
On Thu, Aug 11, 2011 at 9:26 PM, William Squires wrote: > ... > I believe you have two erroneous '*'s in there! '*context:' doesn't make > sense as part of a method signature in ObjC, and there shouldn't be an > asterisk after 'context' but before the opening '{' (an '*' comes before an > identif

Re: Parsing XML to CoreData

2011-03-24 Thread Luther Baker
I guess you could also alloc a new NSMutableString every time you enter "didStart" ... copy will essentially be doing that for you. If you do this - don't forget to release in "didEnd" ... or even right before allocing - just in case you somehow break out before reaching didEnd. -Luther On Thu

Re: Book for expert programmer about cocoa and Objective-C

2011-04-03 Thread Luther Baker
I have and like Chisnall's book - but I wouldn't describe it as > BIG, DIFFICULT and ... HARDCORE I think Chisnall cover's a lot of ground - has a lot of breadth - but isn't necessarily a deep dive into the API. I miss a big Cocoa reference like the old superbible

Re: String Tables

2010-08-06 Thread Luther Baker
In addition to context, another consideration is refactoring ... IE: over time, you may change the text, even in the primary language. If that be the case, your message will not match your key anymore (unless you change your code ... which seems counterproductive). I tend to use keys like:

Re: Why so many public properties all up in my grizzle?

2012-03-16 Thread Luther Baker
A few points worth clarifying for the original poster here ... Using a @property does NOT actually expose the underlying implementation. @properties are like configurable ACCESSORS ... they do *NOT* necessarily provide direct access to the implementation. You can implement them however you want. Y

const correctness

2012-03-17 Thread Luther Baker
Just curious for the reasoning as to why some of the API calls like [NSDictionary valueForKey:] take an NSString* and not a *const* NSString* ? I guess NSStrings are immutable and maybe most runtime built strings are more commonly not const ... but is everyone simply casting these guys at API invo

Re: const correctness

2012-03-17 Thread Luther Baker
, Mar 18, 2012 at 12:41 AM, Jens Alfke wrote: > > On Mar 17, 2012, at 10:12 PM, Luther Baker wrote: > > Just curious for the reasoning as to why some of the API calls like > [NSDictionary valueForKey:] take an NSString* and not a *const* NSString* ? > > > ‘const’ doesn’t

Re: const correctness

2012-03-18 Thread Luther Baker
Obj-C and Cocoa don't support "const" because they are older? On Sun, Mar 18, 2012 at 9:44 AM, Scott Ribe wrote: > On Mar 17, 2012, at 11:58 PM, Luther Baker wrote: > > > I was ruminating about it more of a (self) documenting angle as opposed > to > > run

Re: const correctness

2012-03-18 Thread Luther Baker
n, Mar 18, 2012 at 1:39 PM, Jens Alfke wrote: > > On Mar 18, 2012, at 11:01 AM, Luther Baker wrote: > > Obj-C and Cocoa don't support "const" because they are older? > > > More because they weren’t designed around it. And because the way C++ does > ‘const’

forward decls vs #import

2013-03-14 Thread Luther Baker
Given today's computing power, is there a strong case that can be made for or against the general use of forward declarations? I grew up using them as a best practice in C++ projects ... but more recently, several seniors Obj-C devs have suggested that they prefer #import in the .h files. Initial

Re: Number of chars

2013-03-21 Thread Luther Baker
I don't think your example makes sense. How is 'num of char of "test"' ever 3? In a particular string representation, all letters are each, generally represented with the same number of bytes. On Mar 21, 2013, at 3:27 AM, Luca Ciciriello wrote: > Hi all. > I'm using in my iOS project some Obj

Re: Number of chars

2013-03-21 Thread Luther Baker
I apologize for leading you the wrong way Luca! -Luther On Thu, Mar 21, 2013 at 9:46 AM, Luca Ciciriello < luca_cicirie...@hotmail.com> wrote: > Ok, thanks. > > Luca. > > On Mar 21, 2013, at 3:43 PM, Glenn L. Austin > wrote: > > > > > On Mar 21, 2013, at 2:34 AM, Jean-Daniel Dupas > wrote: >

Re: Wanted: new owner for Mac apps

2013-05-08 Thread Luther Baker
Steve's entire thread was about giving away his source code -- he even keeps us up to date as it starts to leave his hands ... and you read "snippy" into that last comment? ... and then decide to publicly call him out on it? I really don't understand how you got "snippy" out of that comment but yo

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-22 Thread Luther Baker
... yes, and if you are going to be pedantic, please be somehow consistent with the docs: > Core Data provides an infrastructure for change management and for saving objects to and retrieving them from storage. It can use SQLite as one of its persistent store types. *It is not, though, in and of i

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-25 Thread Luther Baker
At the risk of sounding like an idiot for stating the obvious ... why not create a (dummy) inverse relationship (Child.activeParent)? No one says you have to use it ... or heck, maybe you want to use it. Parent.children<>> Child.parent Parent.activeChild <-> Child.activeParent

Re: Still can't delete CoreData object

2013-06-25 Thread Luther Baker
Hi Rick, Warning ... my suggestion does not actually solve your problem as stated and I fear it runs the risk of starting a strange heretical war :( as I'm not sure how folks in this group will receive the suggestion ... but if this is indeed your own project, you may want to take a look at the MV

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-25 Thread Luther Baker
onship that I missed or I'm being too pedantic. I feel like I'm digging too much here! My apologies if that is the case. Sounds like you've already decided your way forward - I was just curious. On Wed, Jun 26, 2013 at 1:20 AM, Rick Mann wrote: > > On Jun 25, 2013, at 2

  1   2   >