Re: Problem with Auto Layout and drawRect

2015-09-08 Thread David Duncan
formance issue in doing so, you should either file a bug (for SDK classes) or implement -copyWithZone: (for your own). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: How to make UISplitViewController behave ?

2015-10-12 Thread David Duncan
___ > > 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 Su

Re: More Xcode 7 inconsistency?

2015-10-14 Thread David Duncan
s due to the protestations I added to the > report, or due to the radar you filed in July.) The intended meaning was “the warning (about passing nil) is intended”. The helpful followup is that it is generally encouraged to use empty containers (@[] or @{}) over nil when there is no semantic d

Re: UILabel is maiming my Character

2015-10-14 Thread David Duncan
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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.c

Re: CGContextShowTextAtPoint

2015-10-14 Thread David Duncan
ator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Dun

Re: More Xcode 7 inconsistency?

2015-10-14 Thread David Duncan
> On Oct 14, 2015, at 4:36 PM, Shane Stanley wrote: > > On 15 Oct 2015, at 4:02 AM, David Duncan wrote: >> >> The helpful followup is that it is generally encouraged to use empty >> containers (@[] or @{}) over nil when there is no semantic difference,

Re: Hide UINavigationBar and keep UIPageController content static

2015-10-25 Thread David Duncan
Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: Updated View Bounds After Orientation Change...

2015-10-25 Thread David Duncan
> Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Updated View Bounds After Orientation Change...

2015-10-27 Thread David Duncan
esAutoresizingMaskIntoConstraints) >>> ( >>> ">> UIActivityIndicatorView:0x14eb3760.midX == + 10>", >> >> Regards, >> Ken >> -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Hiding tab bar causes web content in pushed view to slide down

2015-10-31 Thread David Duncan
ple.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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This

Re: Multiple simultaneous UIAlertControllers

2015-11-05 Thread David Duncan
ct the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan _

Re: 'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others

2015-11-06 Thread David Duncan
ing 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.com/mailman/options/cocoa-dev/david.duncan%

Re: runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-06 Thread David Duncan
t; Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan __

Re: Fade when changing window's rootViewController possible?

2015-11-07 Thread David Duncan
derators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan _

Re: Fade when changing window's rootViewController possible?

2015-11-09 Thread David Duncan
> } > > So both the old and the new root VC are properties of the appDelegate > (self.svc and self.wvc respectively) and they are both initialized in > applicationDidiFinishLaunching. > > Each of them can call the above method of the app delegate and trigger the &g

Re: UINavigationController, hidesBarsWhenVerticallyCompact, and "unhandled taps" - how to "handle" them

2015-11-10 Thread David Duncan
ollection view taps to still show the bars, while collection view taps are ignored. Similarly you could create your own gesture recognizer with your own custom recognition semantics to do something similar. -- David Duncan ___ Cocoa-dev mailing list

Re: The joys of people using valueForKey to get objects out of a dictionary.

2015-11-10 Thread David Duncan
e with other objects that do, and this may be the generic behavior on NSObject (I haven’t checked). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

Re: UIView underlying rects for drawRect

2015-12-07 Thread David Duncan
hat’s about all it does. > > > ___ > > 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 >

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
elp/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
his is way off. How to fix this? A NSDate’s description aways prints its time in UTC, not the local time zone. If you print the result of a properly constructed NSDateFormatter you should see the correct results. > > > > On Tue, Dec 8, 2015 at 3:54 PM David Duncan <mailto:david.du

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
_ > > 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/

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread David Duncan
; > > > > ___ > > 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 > > H

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 4:35 PM, Rick Mann wrote: > >> >> On Dec 9, 2015, at 16:24 , David Duncan wrote: >> >> >>> On Dec 9, 2015, at 3:36 PM, Rick Mann wrote: >>> >>> >>>> On Dec 9, 2015, at 15:19 , Jens Alfke

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 5:17 PM, Rick Mann wrote: > >> >> On Dec 9, 2015, at 16:42 , David Duncan wrote: >> >> >>> On Dec 9, 2015, at 4:35 PM, Rick Mann wrote: >>> >>>> >>>> On Dec 9, 2015, at 16:24 , David Dunca

Re: Custom font for UIAlertAction

2015-12-15 Thread David Duncan
se 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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david

Re: Custom font for UIAlertAction

2015-12-15 Thread David Duncan
is that UIKit won’t guarantee that this won’t someday crash your application. Doing things like this is wholly undefined, do not do them. > > Wysłane z iPhone'a > > Dnia 15.12.2015 o godz. 18:04 David Duncan > napisał(a): > >> >>> On Dec 15, 2015, at

Re: Confusion around tint color and UIImage rendering mode

2016-01-11 Thread David Duncan
sts 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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Du

Re: UI to allow user to scale and crop image within a circle

2016-02-24 Thread David Duncan
ubscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: UI to allow user to scale and crop image within a circle

2016-02-24 Thread David Duncan
blend mode. > > -- > > Charles > > On February 24, 2016 at 03:16:00, David Duncan (david.dun...@apple.com > <mailto:david.dun...@apple.com>) wrote: > >> >> > On Feb 23, 2016, at 7:17 PM, Quincey Morris >> > wrote: >> > &

Re: UI to allow user to scale and crop image within a circle

2016-02-24 Thread David Duncan
to cache this path unless it’s really complex and > expensive. Hint: it’s not, it’s a circle. > > —Graham > > -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: UI to allow user to scale and crop image within a circle

2016-02-24 Thread David Duncan
onship of the > circle to the bounds origin never changes, then I think the forced redrawing > isn’t necessary. > -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Is a portrait-only launch image possible?

2016-03-13 Thread David Duncan
I don’t recall the property off hand, but it shouldn’t be too hard to find it if you really need it) but the recommendation would be to instead support all orientations so that your application will participate in multitasking. -- David Duncan ___ Coco

Re: Is a portrait-only launch image possible?

2016-03-14 Thread David Duncan
creen that follows. > > -- > > Charles > > On March 14, 2016 at 01:40:09, David Duncan (david.dun...@apple.com > <mailto:david.dun...@apple.com>) wrote: > >> >> > On Mar 13, 2016, at 12:32 PM, Charles Jenkins wrote: >> > >> > I’m de

Re: Programmatically pinch a UIView

2016-05-11 Thread David Duncan
ll affect the view’s frame as well). -- David Duncan ___ 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/Unsubsc

Re: Popover arrow point never properly aligned

2016-06-01 Thread David Duncan
gt; This email sent to logancautr...@ftml.net >> > > > -- > Rick Mann > rm...@latencyzero.com <mailto:rm...@latencyzero.com> > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >

Re: What type category should I use for my model in Swift?

2016-06-02 Thread David Duncan
to value vs reference – you can have “smart” structs and “dumb” classes (a Box class is a typical example of a “dumb" class – its entire purpose is to grant identity to a value type) – its really a matter of if you need identity or not. I would highly recommend you

Re: UINavigationController back gesture animation

2016-06-15 Thread David Duncan
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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david

Re: edgesForExtendedLayout outside of loadView/viewDidLoad

2016-06-17 Thread David Duncan
call it twice because of implementation details of layout. -- David Duncan @ My iPhone > On Jun 17, 2016, at 2:27 AM, Torsten Curdt wrote: > > This is odd. This seems to eventually work > > self.edgesForExtendedLayout = UIRectEdge.None > self.view.superview?.setNeed

Re: OK - I must be missing something simple here.

2016-06-22 Thread David Duncan
ou want to change the value of a property or instance variable backed by an IBOutlet you are free to do so – but you also need to implement all of the other things that might mean. That would mean for example that you need to insert the new view and

Re: OK - I must be missing something simple here.

2016-06-28 Thread David Duncan
> On Jun 22, 2016, at 1:36 PM, Alex Zavatone wrote: > > > On Jun 22, 2016, at 1:59 PM, David Duncan wrote: > >> >>> On Jun 22, 2016, at 11:54 AM, Alex Zavatone wrote: >>> >>> >>> On Jun 22, 2016, at 10:51 AM, Alastair Houghton

Re: Objective-C basics - (Why NSNumber conforms to NSCopying protocol)

2016-08-10 Thread David Duncan
eNumber that otherwise conformed to the NSNumber interface, the developer would need to implement -copyWithZone: to do the right thing. If NSNumber doesn’t implement NSCopying, then the subclasser can’t hope to get the correct behavior in this case. -- David Duncan

Re: Xcode 8 - XCODE_VERSION_MAJOR causes compilation issue

2016-08-11 Thread David Duncan
code 8 (and the iOS 10.0 or later SDK) will be a given, so I suspect that most solve this problem by branching for that SDK and all the updates that come with it rather than maintaining conditionals like this in their code. -- David Duncan ___ Coc

Re: Resend: array = [NSArray new] or array = [NSArray array]?

2016-08-19 Thread David Duncan
om > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread David Duncan
derator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread David Duncan
e list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan

Re: Toolbar hiding on rotation?

2016-08-29 Thread David Duncan
oject and configure a navigation controller to show the toolbar and it won’t hide it on its own. What methods are you using to hide/show the toolbar? What other overrides are on your subclass? Any other libraries you have in your project, or categories on UINavigationController? -- D

Re: Unusual Conditional Formatting

2016-09-07 Thread David Duncan
behavior? > > > > ___ > > 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

Re: Success with NSTableView weak delegates?

2016-09-20 Thread David Duncan
a-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: > h

Re: Success with NSTableView weak delegates?

2016-09-20 Thread David Duncan
> On Sep 20, 2016, at 2:47 PM, Sean McBride wrote: > > On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: > >>> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: >>> >>> Hi all, >>> >>> WWDC 2016 Session 203 "What's N

Re: CALayer kCAGravityResizeAspectFill and kCAGravityTop

2016-09-21 Thread David Duncan
p/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: CALayer kCAGravityResizeAspectFill and kCAGravityTop

2016-09-21 Thread David Duncan
the image is not oriented up, then you need to rotate as well. > > cheers, > Torsten -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Re: Maximum image size ?

2016-09-22 Thread David Duncan
st (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.com/ma

Re: Implementing own text prediction on UITextField

2016-09-29 Thread David Duncan
the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread David Duncan
he moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread David Duncan
drawn or not. If you give your panel alpha <1 does that resolve the issue as well? (If so, please file a bug). > > On Tue, Nov 22, 2016 at 1:57 PM David Duncan <mailto:david.dun...@apple.com>> wrote: > > > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki > <mailt

Re: Hardware-accelerated scaling on iOS without OpenGL

2016-11-25 Thread David Duncan
emory gets written to. -- David Duncan @ My iPhone > On Nov 25, 2016, at 10:22 AM, Andreas Falkenhahn > wrote: > > I'm currently writing an iOS backend for a cross-platform program whose > platform-independent engine writes all of its graphics into 32-bit pixel > buffe

Re: Hardware-accelerated scaling on iOS without OpenGL

2016-11-25 Thread David Duncan
is that you can avoid an additional buffer copy and composite on the way to the display in many circumstances. This may not be significant in your case however. -- David Duncan @ My iPhone > On Nov 25, 2016, at 11:38 AM, Andreas Falkenhahn > wrote: > >> On 25.11.2016 at 16:

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-26 Thread David Duncan
you are trying to fix up a transform, it may be easier to use contentMode instead of transform for this case. AspectFit vs AspectFill will do the common letterbox vs clip without you needing to do anything further. -- David Duncan @ My iPhone > On Nov 26, 2016, at 3:40 PM, Andreas Falkenh

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-28 Thread David Duncan
> On Nov 27, 2016, at 7:25 AM, Andreas Falkenhahn > wrote: > > On 27.11.2016 at 00:04 David Duncan wrote: > >> What are you trying to accomplish? > > I want to keep my UIView centered on the screen so I need to > change its position when the device rotates. I&#

Re: How to convert from decomposed to precomposed UTF-8 on iOS

2016-11-28 Thread David Duncan
> Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-29 Thread David Duncan
> On Nov 29, 2016, at 11:30 AM, Andreas Falkenhahn > wrote: > > On 28.11.2016 at 16:50 David Duncan wrote: > >> I think you can do everything you need to do in layoutSubviews >> (fundamentally it doesn’t matter if the device rotates or not, you >> just want

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-29 Thread David Duncan
> On Nov 29, 2016, at 2:50 PM, Andreas Falkenhahn > wrote: > > On 29.11.2016 at 17:35 David Duncan wrote: > > >>> On Nov 29, 2016, at 11:30 AM, Andreas Falkenhahn >>> wrote: > >>> On 28.11.2016 at 16:50 David Duncan wrote: > &

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-30 Thread David Duncan
Create and use a subview. There is no significant cost to an additional content-less view. -- David Duncan @ My iPhone > On Nov 30, 2016, at 9:46 AM, Andreas Falkenhahn > wrote: > >> On 29.11.2016 at 22:28 David Duncan wrote: >> >> Correct, because the owning UIW

Re: iOS 9: Adding CALayer to self.view.layer causes EXC_BAD_ACCESS

2016-12-06 Thread David Duncan
ts 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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- D

Re: iOS 9: Adding CALayer to self.view.layer causes EXC_BAD_ACCESS

2016-12-06 Thread David Duncan
gt; <mailto: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 > <http://lists.apple.com/> > > Help/Unsubscribe/Update your Subscription: > https://li

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
tingViewController.topLayoutGuide.length) >self.navigationBar.frame = CGRect(x: 0, y: self.topView.frame.origin.y > + self.topView.bounds.height, width: self.containerView?.bounds.width ?? 0, > height: self.navigationBar.intrinsicContentSize.height) > > >

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
view controller in a UINavigationController rather than making the navigation bar part of the presentation itself. > > Dan > >> On Dec 7, 2016, at 10:01 AM, David Duncan > <mailto:david.dun...@apple.com>> wrote: >> >> Its unclear to me at least, but w

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
might otherwise do if you were using a UINavigationController – wrap your view controller in your container and go from there. If the only reason you needed presentation is for the navigation bar, then you wouldn’t need presentation controllers at all at that point. > > Dan -- David Dunca

Re: Accessing pointer structure members inside block function

2016-12-13 Thread David Duncan
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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.

Re: Releasing modal view controller properly

2016-12-17 Thread David Duncan
__ > > 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/Unsubsc

Re: Is it safe to assume that viewDidLoad() is only ever called once on iOS 8.0+?

2016-12-19 Thread David Duncan
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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com

Re: My app only shows a black screen in the recent apps list

2016-12-22 Thread David Duncan
> > 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.com/

Re: My app only shows a black screen in the recent apps list

2016-12-22 Thread David Duncan
Inline -- David Duncan @ My iPhone > On Dec 22, 2016, at 4:49 PM, Alex Zavatone wrote: > > In that case, would it make sense when the app will enter background, to take > a snapshot of the main window, then put that image layer over your main > window so that you can gua

Re: My app only shows a black screen in the recent apps list

2016-12-25 Thread David Duncan
use it goes against the design of the OS (that apps are always “there” and their lifetime is managed by the system) and because it goes against user expectation (that you can task switch quickly and come back to the app exactly as it was). > > On 23.12.2016 at 14:35 Andreas Falkenhahn w

Re: My app only shows a black screen in the recent apps list

2016-12-30 Thread David Duncan
> On Dec 27, 2016, at 3:52 AM, Andreas Falkenhahn > wrote: > > On 25.12.2016 at 16:57 David Duncan wrote: > >>> On Dec 23, 2016, at 9:05 AM, Andreas Falkenhahn >>> wrote: > >>> Further examinations have shown that the issue might b

Re: Animating autolayout constraint changes for subviews

2016-12-30 Thread David Duncan
t; within an animation context? Even if the former, are you calling any >> methods that force layout (layoutIfNeeded or similar)? If so, where/when? >> >> Regards, >> Ken >> > > > ___ &

Re: Animating autolayout constraint changes for subviews

2016-12-30 Thread David Duncan
> On Dec 30, 2016, at 11:50 AM, Doug Hill wrote: > > >> On Dec 30, 2016, at 11:38 AM, David Duncan wrote: >> >> >>> On Dec 28, 2016, at 4:14 PM, Doug Hill wrote: >>> >>> Hi Ken, >>> >>> The exact behavior is that th

Re: UINavigationBar content margins in UIPresentationController subclass

2017-01-03 Thread David Duncan
an work around this limitation in the meantime? > > Dan > >> On Dec 7, 2016, at 10:35 AM, David Duncan > <mailto:david.dun...@apple.com>> wrote: >> >> >>> On Dec 7, 2016, at 10:28 AM, Daniel Stenmark >> <mailto:dstenm...@opentable.com>> w

Re: NSGradient & NSTextField’s focus ring

2017-02-20 Thread David Duncan
; Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSGradient & NSTextField’s focus ring

2017-02-20 Thread David Duncan
ing the equivalent of drawing the entire view into whatever dirtyRect you happen to get. > > let path = NSBezierPath() > path.move(to: NSPoint(x: 0, y: 0)) > path.line(to: NSPoint(x: dirtyRect.maxX, y: 0)) > NSColor.darkGray.setStroke() > path.stroke() > } > > } > > C

Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8

2014-09-23 Thread David Duncan
gt;> Zygoat Creative Technical Services >> http://www.zygoat.ca > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators

Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8

2014-09-23 Thread David Duncan
o remove the PPRevealSideViewController view controller and see if the issues go away (or you can do this in a side project). > > Herman > > > On 23 Sep 2014, at 13:32, David Duncan wrote: > >>> On Sep 22, 2014, at 7:16 PM, Herman Chan wrote: >>> &

Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8

2014-09-23 Thread David Duncan
> UIPresentationController in iOS 8. The real problem is that I can't seem to > replicate this crash at all. > > My leading theory at the moment is that I am not setting > modalPresentationStyle on the controller who's presenting the new view > controller and someho

Re: Obtaining class of key at runtime

2014-10-06 Thread David Duncan
? > > ___ > > 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/U

Re: Memory Warnings

2014-10-08 Thread David Duncan
Once your application is in the background it becomes fair game for being terminated. So even if you're using a very reasonable mount of RAM, if you're in the background you can expect that if some other application needs the memory your application will be terminated. -- David D

Re: Crash with ARC enabled on Xcode 6.1

2014-10-22 Thread David Duncan
pple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Question about accelerometer and OpenGL (ES)

2014-10-27 Thread David Duncan
ease 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.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread David Duncan
... Then you just move your single vibrant background as necessary to be behind the right icon view. It sounds like you are putting the icon view inside the vibrant background. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-

Re: How make image nonvibrant in Yosemite NSVisualEffectView

2014-10-30 Thread David Duncan
> On Oct 30, 2014, at 2:09 PM, Bill Cheeseman wrote: > > >> On Oct 30, 2014, at 4:04 PM, David Duncan wrote: >> >> Then you just move your single vibrant background as necessary to be behind >> the right icon view. It sounds like you are putting the

Re: Can an use introspection to determine if its a production app from the App Store?

2014-10-31 Thread David Duncan
the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan

Re: Subclassing NSView in Yosemite?

2014-11-06 Thread David Duncan
__ > > 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/Unsubsc

Re: WTF is happening?

2014-12-15 Thread David Duncan
___ > > 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.com/mailman/

Re: WTF is happening?

2014-12-15 Thread David Duncan
framework provides a method for loading these format plugins and does the registration itself. Your users always use that method and you don’t have any of these problems. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: WTF is happening?

2014-12-15 Thread David Duncan
gt; >> On Dec 16, 2014, at 02:09, David Duncan > <mailto:david.dun...@apple.com>> wrote: >> >> >>> On Dec 15, 2014, at 9:59 AM, Maxthon Chan >> <mailto:m...@maxchan.info>> wrote: >>> >>> I do own the entire SubtitleKit framew

Re: Debugging memory leak in NSURLSession with ARC

2015-01-01 Thread David Duncan
t; > > > ___ > > 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/Unsub

Re: Conditional Compilation for 10.9/10.10...

2015-01-02 Thread David Duncan
gt; Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: iOS 6.x vs iOS 8.x layout

2015-01-26 Thread David Duncan
date your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: iOS 6 and 6 plus artwork

2015-01-28 Thread David Duncan
dimensions @3x on an iPhone 6 Plus). You probably want to master larger images for those devices. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: ARC dealloc best pratice

2015-02-06 Thread David Duncan
ling 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.com/mailman/options/cocoa-

Re: Spanning UITextField on navigation bar

2015-02-09 Thread David Duncan
u needing to do much more than ensuring that your view is large enough (setting its frame or bounds before setting the corresponding bar button item on the bar for example). Please do not add additional subviews to UINavigationBar (or UIToolbar or UITabBar). That wil

  1   2   3   4   5   6   7   8   9   10   >