Re: Embedded Collection View Controller scrolling issue

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 23:45 , Doug Hill wrote: > > I'm still looking for other ways to track this down. I think you’re going to have to submit a bug report or use a TSI to get Apple to tell you what to do. ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Embedded Collection View Controller scrolling issue

2017-06-19 Thread Doug Hill
Hello Quincey, First, I should have originally made clear this is iOS, apologies. Also, to clarify, I am talking about the drag-scroll gesture, which would be the Pan gesture. The scroller-within-a-scroller is definitely more complex but I've usually made them work in previous view controller

Re: Embedded Collection View Controller scrolling issue

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 16:22 , Doug Hill wrote: > > The embedded collection view will only scroll if I drag on the area of the > collection view that is originally visible. Can you clarify this a bit? Are you talking about the autoscrolling that happens when you drag-select, or scrolling that hap

Re: NSTimer or what?

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 20:04 , Gerriet M. Denkmann wrote: > > What is the most efficient (energy-wise) way to do this: > > NSTimer (with tolerance) > NSRunLoop performSelector:target:argument:order:modes: > NSObject performSelector:withObject:afterDelay: > GCD dispatch_af

Re: Cursor outside Rect without polling

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 20:17 , Gerriet M. Denkmann wrote: > > 1. if the cursor is initially NOT in the rect, the app does not get notified: > Workaround: user moves cursor into the rect (not very good). > > 2. if the app is hidden under some other windows, it also does not get > notified. > Workar

Cursor outside Rect without polling

2017-06-19 Thread Gerriet M. Denkmann
macOS. Some Cocoa app wants to know whether the cursor moved from any point to a point outside of some rect. Currently I use polling (which looks kind of inefficient). I tried NSTrackingArea, but this does not work: 1. if the cursor is initially NOT in the rect, the app does not get notified:

NSTimer or what?

2017-06-19 Thread Gerriet M. Denkmann
macOS 11+ Some Cocoa app which has to do: 1. something a few seconds later 2. some other thing repeatedly about every 0.1 second. What is the most efficient (energy-wise) way to do this: NSTimer (with tolerance) NSRunLoop performSelector:target:argument:order:modes: NSObject

Embedded Collection View Controller scrolling issue

2017-06-19 Thread Doug Hill
I have a View Controller that has some embedded view controllers in it. One of the embedded view controllers is a Collection View Controller. This view controller is a grid of values that can be an arbitrary content size (e.g. number of cells) but the collection view bounds has fixed size. The c

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Alex Zavatone
I think we’re reading this differently. But I remembered reading the header info from Mac OS in 2009, which I’ll have to look into. What I pasted from line 153 of UIKit, UIViewController.h, (NOT AppKit NSViewController.h) explicitly says that “If you invoke this method with a nil nib name, t

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread David Duncan
> On Jun 19, 2017, at 3:37 PM, Charles Srstka wrote: > >> On Jun 19, 2017, at 4:29 PM, Alex Zavatone wrote: >> >> From line 153 of UIViewController.h: >> >> As a convenience, the default init method will do this for you, >> and specify nil for both of this methods arguments.) In the specif

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Charles Srstka
> On Jun 19, 2017, at 4:29 PM, Alex Zavatone wrote: > > From line 153 of UIViewController.h: > > As a convenience, the default init method will do this for you, > and specify nil for both of this methods arguments.) In the specified NIB, > the File's Owner proxy should > have its class s

Re: Property in class mirrored to user defaults

2017-06-19 Thread Alex Zavatone
As mentioned, there is NSUserDefaults. I think that there is a better way that is pretty much built in, but one that we often ignore. NSCoding. This is what it does. Matt Thompson has a nice write up on this here (in Objective-C and Swift), with a critical observation at the end of the compa

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Alex Zavatone
> On Jun 19, 2017, at 3:25 PM, Charles Srstka wrote: > >> On Jun 19, 2017, at 2:51 PM, Alex Zavatone > > wrote: >> >> What is EXCELLENT is when you take the storyboard and remove all the top >> level views. Then, create individual XIBs for each scene. The >> viewControl

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 11:31 , Dave wrote: > > I think it would be better to move to NIBs now before wasting anymore time > trying to get Storyboards to work. I don’t honestly understand why you think this is going to make anything easier. With storyboards, you *are* using NIBs, behind the scenes

Re: Help with Storyboard Problem

2017-06-19 Thread Quincey Morris
On Jun 19, 2017, at 11:24 , Dave wrote: > > I’ve tried using Segues but can’t get that to work You haven’t said what “can’t get that to work” means. What do you expect? What happens? What does your view controller hierarchy look like. > so instead of setting myView = > call: > [self presentVie

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Charles Srstka
> On Jun 19, 2017, at 2:51 PM, Alex Zavatone wrote: > > What is EXCELLENT is when you take the storyboard and remove all the top > level views. Then, create individual XIBs for each scene. The > viewController.h specifies that “if a view can not be found, an .xib with the > same name of the

Re: Converting a Storyboard into separate NIBs.

2017-06-19 Thread Alex Zavatone
Dave, I can help you out with this too. What is EXCELLENT is when you take the storyboard and remove all the top level views. Then, create individual XIBs for each scene. The viewController.h specifies that “if a view can not be found, an .xib with the same name of the class file will be lo

Re: Help with Storyboard Problem

2017-06-19 Thread Alex Zavatone
Dave. I’ll help you out if you need it on Skype or whatever. But first, have you embedded your first view controller in a navigation controller? Select your first view controller in the storyboard. From the Editor menu, select “Embed In” and then select “Navigation Controller”. If that doe

Re: Help with Storyboard Problem

2017-06-19 Thread Dave
A bit more on this: I tried it with a NIB as so: -(IBAction) startGameAction:(id) theSender { LTWBoardViewController* myGameViewController; UIView* myView; myGameViewController = [[LTWBoardViewController alloc] init

Re: Help with Storyboard Problem

2017-06-19 Thread davelist
> On Jun 19, 2017, at 2:24 PM, Dave wrote: > > XCode 8.3.3. > > Hi All, > > I’m using storyboards on an iOS project and can’t seem to get it to work. > > I have two view controllers in the “Main.storyboard” file. The fist view > controller has one button on it, that when clicked, I want it t

Converting a Storyboard into separate NIBs.

2017-06-19 Thread Dave
Hi All, I have an iOS project that I have made the mistake of using storyboards on. At the moment, I only have one fairly complex view controller and I think it would be better to move to NIBs now before wasting anymore time trying to get Storyboards to work. Can anyone tell me if this is an

Help with Storyboard Problem

2017-06-19 Thread Dave
XCode 8.3.3. Hi All, I’m using storyboards on an iOS project and can’t seem to get it to work. I have two view controllers in the “Main.storyboard” file. The fist view controller has one button on it, that when clicked, I want it to go to the other view controller. I’ve tried using Segues but

Re: Annual codesign pain point

2017-06-19 Thread Alex Zavatone
Well, I guess that didn't come through. I was wondering if you still get that certificate mismatch now that the image is corrected. Sent from my iPhone > On Jun 19, 2017, at 8:29 AM, Alex Zavatone wrote: > > > ___ > > Cocoa-dev mailing list (Coco

Re: Annual codesign pain point

2017-06-19 Thread Alex Zavatone
___ 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.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co