Re: Causes of "Cannot update object that was never inserted"

2013-06-17 Thread Michael Crawford
Try adding assertions throughout your code. I get the most mileage by validating the input parameters to all my subroutines. If one of your parameters is a pointer, can it be nil? Less commonly I validate return results and side effects. Also look through all of your subclass method overrides,

How to share a temp file between Mac apps

2013-06-17 Thread Simone Nicolo
I have an app (App1) that creates a temp file that then needs to be opened in another app (App2), which the first app launches using NSTask with several arguments, one of which is the temp file created by App1. To create the temp file name and path I use the following snippet: NSString *

scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Benjamin Rindt
Hey, I'm trying this for I think over 3 hours just to get my View to scroll to a point when loaded. But not to start and cut off the rest of it, just be scrolled to there. Tried it in my real project, didn't work, made small test project, doesn't work either. NSScrollView* myscrollview = [

Animating constraints iOS

2013-06-17 Thread Roland King
I'm trying to animate a view growth animation on iOS on a view which uses constraints. My usual way of animating constraint changes on iOS is to set the new ones and then call [ self layoutIfNeeded ] inside a UIView transition block. This doesn't work well at all on this particular view, the

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Keary Suska
On Jun 13, 2013, at 5:53 PM, Benjamin Rindt wrote: > Hey, > I'm trying this for I think over 3 hours just to get my View to scroll to a > point when loaded. But not to start and cut off the rest of it, just be > scrolled to there. > > Tried it in my real project, didn't work, made small test pr

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Keary Suska
On Jun 17, 2013, at 8:38 AM, Keary Suska wrote: > NSScrollView* myscrollview = [[NSScrollView alloc] > initWithFrame:NSMakeRect(0, 0, 200, 200)]; > NSClipView* myclipview = [[NSClipView alloc] initWithFrame:NSMakeRect(0, 0, > 500, 400)]; > [myscrollview setHasVerticalScroller:YES]; > [my

Rules for IBOutlet Strong/Weak References

2013-06-17 Thread Gordon Apple
Re: Confused by memory issue with UIDatePicker I¹ve had a lot of experience with this and would like to share my basic rules for IBOutlets when using ARC. This should be fairly obvious, but I think it needs saying. 1. All top level objects in a nib should be strongly-referenced from the file¹s

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Kyle Sluder
On Mon, Jun 17, 2013, at 08:20 AM, Keary Suska wrote: > On Jun 17, 2013, at 8:38 AM, Keary Suska wrote: > > > NSScrollView* myscrollview = [[NSScrollView alloc] > > initWithFrame:NSMakeRect(0, 0, 200, 200)]; > > NSClipView* myclipview = [[NSClipView alloc] initWithFrame:NSMakeRect(0, > > 0,

Re: scrollPoint in NSScrollView does not scroll

2013-06-17 Thread Kyle Sluder
On Mon, Jun 17, 2013, at 07:38 AM, Keary Suska wrote: > One possibility I know I have missed in the past is that the scroll point > is the clip view's bounds *origin*, which is the bottom-left corner. Note: if the document view returns YES from -isFlipped, the clip view _also_ returns YES from -is

view gets drawRect called when scrolling into elastic area

2013-06-17 Thread Steve Mills
Can anyone explain why our view subclass is getting drawRect called when I scroll into the elastic area with 2-finger scrolling (OS X, not iOS)? The view has at least one CALayer and self.wantsLayer has been set to YES. This causes it to draw in tiles. All tiles have been rendered, yet when I sc

Re: view gets drawRect called when scrolling into elastic area

2013-06-17 Thread Steve Mills
On Jun 17, 2013, at 11:50:58, Steve Mills wrote: > yet when I scroll past the actual bounds of the view into the elastic area, > we get drawRects for *all* tiles. I meant to say all *visible* tiles. -- Steve Mills office: 952-818-3871 home: 952-401-6255 cell: 612-803-6157 __

UIPageViewController

2013-06-17 Thread koko
I am having difficulty displaying a UIPageViewController in full screen. Some details: 1. The app is Master/Detail 2. A master selection causes a detail view display in a UICollectionView 3. A different Master selection changes the detail view UIColllectionView. 4. Make a multiple selection in t

Re: UIPageViewController

2013-06-17 Thread Laurent Daudelin
Are you using a navigation controller? Based on your description, I think you should. If so, you push the UIPageViewController like any other view controller: [self.navigationController pushViewController:thePageViewController animated:YES]. If you’re instantiating the UIPageViewController from

core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
Dear list, Something's not right with the world. I wanted to add a new boolean flag to my NSPersistentDocument core data model. So I selected the last version (11) and added a new version based on that (via the Editor menu). Then I carefully selected another file and then the version 12 model t

Re: view gets drawRect called when scrolling into elastic area

2013-06-17 Thread Kyle Sluder
On Mon, Jun 17, 2013, at 09:50 AM, Steve Mills wrote: > Can anyone explain why our view subclass is getting drawRect called when > I scroll into the elastic area with 2-finger scrolling (OS X, not iOS)? > The view has at least one CALayer and self.wantsLayer has been set to > YES. This causes it to

Re: UIPageViewController

2013-06-17 Thread koko
On Jun 17, 2013, at 12:33 PM, Laurent Daudelin wrote: > Are you using a navigation controller? Based on your description, I think you > should. I have done the following: UIPageViewController *pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewController

Re: Causes of "Cannot update object that was never inserted"

2013-06-17 Thread Jerry Krinock
On 2013 Jun 17, at 00:17, Michael Crawford wrote: > Try adding assertions throughout your code. That's a good idea, Michael, although for Release builds I prefer to just NSLog(). My "Trouble Zipper" that users can download from the app's Help menu filters out system logs. Not sandboxed :)

Re: core data lightweight migration woes

2013-06-17 Thread Jerry Krinock
I don't see anything wrong in what you've done Martin. And I am ashamed to admit that I have a few more version numbers than you in one of my apps. I think the only thing I do differently is that I always create a mapping model, whether it needs it or not. Lightweight migration has always see

FW: Andrew James

2013-06-17 Thread Andrew James
hello! http://www.airinfo.be/uf/hpnl/ffrs/fhejn.html Andrew James ___ 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-admins(at)lists.apple.c

"tab view item - objects" Binding

2013-06-17 Thread Keary Suska
I have recently noticed that when I have a xib with an NSTabView, an option in the bind-to-controller shows up named "tab view item - objects". Does anyone know what this is? I can't find anything at all about it... Keary Suska Esoteritech, Inc. "Demystifying technology for your home or business

NSArrayController setSortDescriptors error

2013-06-17 Thread Trygve Inda
NSSortDescriptor* sortDesc; sortDesc = [[NSSortDescriptor alloc] initWithKey:kMainColumnIdentifier ascending:YES selector:@selector(compare:)]; NSArray* testArray = [NSArray arrayWithObject:sortDesc]; [myArrayController setSortDescriptors:testArray]; [sortDesc release]; On the lin

IB UITableViewController "refreshing" setting?

2013-06-17 Thread Rick Mann
What is the "refreshing" setting? It can be set to enabled or disabled. -- Rick ___ 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-admins(a

Re: IB UITableViewController "refreshing" setting?

2013-06-17 Thread Laurent Daudelin
On Jun 17, 2013, at 23:05, Rick Mann wrote: > What is the "refreshing" setting? It can be set to enabled or disabled. I’d like to know as well. I just accidentally noticed it this afternoon... -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http:

Re: core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
Hi Jerry, I did try making a mapping model (this is something I've done in the past in other apps) but I got the same error message. Is the idea that the auto-migration magic will pick up the mapping model and use it, if it finds it? Many thanks, Martin On Jun 17, 2013, at 10:42 PM, Jerry Kr

Re: IB UITableViewController "refreshing" setting?

2013-06-17 Thread Laurent Daudelin
On Jun 18, 2013, at 00:14, Rick Mann wrote: > > On Jun 17, 2013, at 21:13 , Laurent Daudelin wrote: > >> I’d like to know as well. I just accidentally noticed it this afternoon... > > Heh, same here Rick, After googling a bit, it seems to relate to a UIRefreshControl which was introduced i

Re: IB UITableViewController "refreshing" setting?

2013-06-17 Thread Rick Mann
On Jun 17, 2013, at 21:18 , Laurent Daudelin wrote: > After googling a bit, it seems to relate to a UIRefreshControl which was > introduced in iOS 6 and seems to be putting the control when you pull the > refresh the table view. From what I understand, when you choose “Enabled”, > the UITable

Re: IB UITableViewController "refreshing" setting?

2013-06-17 Thread Laurent Daudelin
On Jun 18, 2013, at 00:21, Rick Mann wrote: > On Jun 17, 2013, at 21:18 , Laurent Daudelin wrote: > >> After googling a bit, it seems to relate to a UIRefreshControl which was >> introduced in iOS 6 and seems to be putting the control when you pull the >> refresh the table view. From what I u

NSFetchedResultsController getting insert update on delete?

2013-06-17 Thread Rick Mann
I'm deleting a core data entity when my user swipes across the UITableViewCell. I've been doing this for a long time, and it has worked. Suddenly, the NSFetchedResultsController is getting an *additional* NSFetchedResultsChangeInsert type change (in addition to the expected NSFetchedResultsChan

Re: core data lightweight migration woes

2013-06-17 Thread Jerry Krinock
On 2013 Jun 17, at 21:13, Martin Hewitson wrote: > I did try making a mapping model (this is something I've done in the past in > other apps) but I got the same error message. Oh, well. > Is the idea that the auto-migration magic will pick up the mapping model and > use it, if it finds it?

Re: core data lightweight migration woes

2013-06-17 Thread Martin Hewitson
On Jun 18, 2013, at 08:08 AM, Jerry Krinock wrote: > > On 2013 Jun 17, at 21:13, Martin Hewitson wrote: > >> I did try making a mapping model (this is something I've done in the past in >> other apps) but I got the same error message. > > Oh, well. > >> Is the idea that the auto-migration

Re: core data lightweight migration woes

2013-06-17 Thread Dave Fernandes
cc'ing the list this time… On 2013-06-18, at 2:26 AM, Martin Hewitson wrote: > > On Jun 18, 2013, at 08:08 AM, Jerry Krinock wrote: > >> >> On 2013 Jun 17, at 21:13, Martin Hewitson wrote: >> >>> I did try making a mapping model (this is something I've done in the past >>> in other apps)