Re: Swift - Basic query regarding managedObjectContext method invocation from app delegate

2014-10-15 Thread Jerry Krinock
On 2014 Oct 14, at 22:27, Devarshi Kulshreshtha devarshi.bluec...@gmail.com wrote: I know about NSBatchUpdateRequest Yes, that’s what I was thinking of. How about the reset + save ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Table of TextViews

2014-10-15 Thread Ken Thomases
On Oct 14, 2014, at 7:49 AM, Charles Jenkins cejw...@gmail.com wrote: I’m going to take this step by step. Would you comment on my NSTextView subclass and tell me if something is wrong in the way I’ve set it up to size itself, notify itself, or pass along size-change notifications? I don't

Re: NSTableColumn identifier - can't be set in latest IB?

2014-10-15 Thread Graham Cox
Looks like 'restoration ID' is in fact, the identifier (in the Identity panel). Badly labelled, and obviously reconsidered for 6.1... --Graham On 15 Oct 2014, at 3:48 pm, Dave Fernandes dave.fernan...@utoronto.ca wrote: I’m using Xcode 6.1 GM candidate, and it is in the Identity inspector. I

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
Ken, Thanks for looking it over. :-) I guess I misunderstood the documentation. I thought if you dragged out a table view from the palette into a NIB, you got a full hierarchy of objects (including the extra scroll view I specifically don’t want), but if you created it programmatically you

Re: Table of TextViews

2014-10-15 Thread Charles Jenkins
Of course in the penultimate paragraph I meant I redesigned the TEXT VIEW this way to filter notifications. I never seem to find typos until after my posts appear… :-/ -- Charles On Wednesday, October 15, 2014 at 7:40, Charles Jenkins wrote: Ken, Thanks for looking it over. :-) I

Re: Open document panel always on top - Mountain Lion

2014-10-15 Thread Matthew LeRoy
On 10/10/14, 8:29 PM, Quincey Morris quinceymor...@rivergatesoftware.commailto:quinceymor...@rivergatesoftware.com wrote: On Oct 10, 2014, at 13:34 , Matthew LeRoy mle...@minitab.commailto:mle...@minitab.com wrote: Not entirely sure where to go from here. It’s not clear to me whether the

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Daniel Blakemore
I can understand that it might behave that way. It's not in and of itself unreasonable, although in my opinion if the selected segment changes visually, it's kind of weird not to send the message since the key isn't UIControlEventValueChangedButReallyIOnlyCareAboutWhenTheChangeCameFromATouch.

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Keary Suska
On Oct 15, 2014, at 9:46 AM, Daniel Blakemore dblakem...@pixio.com wrote: I can understand that it might behave that way. It's not in and of itself unreasonable, although in my opinion if the selected segment changes visually, it's kind of weird not to send the message since the key isn't

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Scott Ribe
On Oct 15, 2014, at 10:00 AM, Keary Suska cocoa-...@esoteritech.com wrote: It is also useful to know that event handling almost exclusively relate to device input, not to programmatic changes. I.e., setting the value of a control is not an event so no event handling will get involved. You

Re: Setting the Selected Segment of a Segmented Control

2014-10-15 Thread Daniel Blakemore
I wouldn't say that I was using it incorrectly since the user also can change the segmented control, but when the form fails to validate, it shifts to the unfinished section programmatically. I wondered if someone would call me on the fact that they all fall under the UIControlEvents which are

Validating against multiple updated Coredata objects

2014-10-15 Thread Jim Thomason
Hi, In my user interface, I can have the user edit a field on an object, and behind the scenes this will trigger a cascade of other changes to other objects. As a result, I don't just need to validate the value the user typed in, I also need to validate all of the other changes that that single

Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
Hi, I'm working on my first ARC-enabled app, but am having a problem with how to keep my delegate's member data alive. At startup (in the delegate's applicationDidFinishLaunching: function), my delegate initializes a data object (a member of the delegate) containing some

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
I think I resolved it… my data object's members were all declared using @property(assign). I changed those all to @property(retain), and it works now. Thanks, Howard On Oct 15, 2014, at 1:42 PM, Howard Moon how...@antarestech.com wrote: Hi, I'm working on my first

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Alex Zavatone
You mit want to check out singleton creation if you want to access at data object from multiple objects. Just google for Matt Galloway singleton and the first link should show you what you need. This is geared for iOS but I suspect it should work fine if you are targeting the Mac as well.

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Jens Alfke
On Oct 15, 2014, at 1:58 PM, Howard Moon how...@antarestech.com wrote: I think I resolved it… my data object's members were all declared using @property(assign). I changed those all to @property(retain), and it works now. Don't use assign or retain in ARC, use weak and strong. (And

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
Oh, ok, thanks! Yes, that works, simply removing the (assign) or (retain) (leaving it as the default, strong). It's hard to follow examples I find on the internet since so many are out of date or don't use ARC, and there's no easy way to tell them apart. Thanks! -Howard On Oct 15,

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Kevin Meaney
Hi Howard, I tried to capture some of my interpretation of apple's documentation about ARC into a blog post which you might find useful. Note also the links to 2 other blog posts which I would recommend. http://blog.yvs.eu.com/2013/04/learning-arc/ I did a followup blog post, but it is mostly

Problem getting import UTI recognised

2014-10-15 Thread Graham Cox
Hi all, My app declares 3 UTIs for import, which are basically the same as the document types it supports. It imports two of the types fine, but the other (which is actually the default native format) it refuses to accept - I get a message to say that my app cannot open documents of

Re: Problem getting import UTI recognised

2014-10-15 Thread Kyle Sluder
On Oct 15, 2014, at 8:14 PM, Graham Cox graham@bigpond.com wrote: Hi all, My app declares 3 UTIs for import, which are basically the same as the document types it supports. It imports two of the types fine, but the other (which is actually the default native format) it refuses to

Re: Problem getting import UTI recognised

2014-10-15 Thread Graham Cox
On 16 Oct 2014, at 2:19 pm, Kyle Sluder k...@ksluder.com wrote: Is there another app on your system declaring that file extension for its own UTI? You can dump the database with lsregister(1). No, I used lsregister -dump and my app is the only one. I'm going backwards now - having rebuilt

UICollectionView parallax-like horizontal scrolling

2014-10-15 Thread Mazzaroth M.
In the running apps view(double-tap Home button) there are two rows each which contain two different types of cells. How would one implement this using UICollectionView? I more or less want to do this where the lower row cells are slightly narrower than the upper row such that when you swipe to