Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread David Duncan via Cocoa-dev
ntext, and restore it afterwards). > > All the best > JP > > > > > > > >a graphic context created by myself ( hence not the supplied on by the > printing framework ) > >> Le 22 sept. 2023 à 17:59, David Duncan > <mailto:david.dun.

Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread David Duncan via Cocoa-dev
> On Sep 22, 2023, at 11:12 AM, JPH via Cocoa-dev > wrote: > > I am facing the following problems in drawing text and graphics in > CGContextRef of an NSview and Printing framework: > > 1) drawing text using: [finalString drawInRect:textBox > withAttributes:attributes]; > Works nicely

Re: CALayer shadows and CGContext clip rect

2023-01-03 Thread David Duncan via Cocoa-dev
While you may have solved your problem, your general approach is not one that would be recommended – CALayers are not meant to be drawn into a context, but rather added to a layer tree to be rendered by the system. For what you are doing you would likely have less issue and better performance dr

Re: iOS UINavigation background removal.

2022-01-28 Thread David Duncan via Cocoa-dev
introduced for large titles in iOS 13 and extended to all bar in iOS 15. > > > Thanks again David. You’re on my Christmas list. > > Alex Zavatone > >> On Jan 28, 2022, at 1:30 PM, David Duncan > <mailto:david.dun...@apple.com>> wrote: >> >> U

Re: iOS UINavigation background removal.

2022-01-28 Thread David Duncan via Cocoa-dev
UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; [appearance configureWithTransparentBackground]; navigationItem.standardAppearance = appearance; Thats the simplest per-item way to do it. This does imply you adopt the new appearance APIs introduced in iOS 13. > On Jan 28,

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-18 Thread David Duncan via Cocoa-dev
> On Oct 18, 2021, at 10:51 AM, Alex Zavatone wrote: > > > >> On Oct 18, 2021, at 11:31 AM, David Duncan wrote: >> >> In general it's also preferred that you look at the traitCollection of the >> most relevant view for this information – there ar

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-18 Thread David Duncan via Cocoa-dev
In general its also preferred that you look at the traitCollection of the most relevant view for this information – there are contexts for which the content size category may not match the global value (and there is API on UIView to restrict the overall range that you can apply as well). This al

Re: Scaling a UIImage

2020-11-02 Thread David Duncan via Cocoa-dev
you need an NSBitmapRep you can use -bestRepresentationForRect:context:hints:. But assuming your trying to get that NSImage somewhere other than into (say) an NSImageView, there may be better APIs or pathways to that solution. > -Carl > > >> On Nov 2, 2020, at 3:09 PM, David

Re: Scaling a UIImage

2020-11-02 Thread David Duncan via Cocoa-dev
> On Nov 2, 2020, at 2:59 PM, Carl Hoefs via Cocoa-dev > wrote: > > How can I correctly scale a UIImage from 3264x2448 down to 640x480 pixels? > > > I have an iOS app that interacts with a macOS server process. The iOS app > takes a 3264x2448 camera image, scales it to 640x480 pixels, and m

Re: Throttling drawing to vertical refresh

2020-10-23 Thread David Duncan via Cocoa-dev
chanism that only calls > -setNeedsDisplay every once in a while. So should I setup a timer based on > the monitor's refresh frequency rate that calls -setNeedsDisplay in intervals > of the monitor's vertical refresh rate or how is that supposed to be > implemented? > > On 19.1

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-04 Thread David Duncan via Cocoa-dev
You’ll need to explain how you are creating the NSBitmapImageRep (what methods your calling, what parameters your passing, etc) that you pass to this method before anyone can explain why this might be going wrong for you. > On Mar 3, 2020, at 10:19 PM, Sravan Kumar Lakkimsetti via Cocoa-dev >

Re: UIView block-based methods

2019-11-11 Thread David Duncan via Cocoa-dev
> On Nov 9, 2019, at 12:09 PM, Carl Hoefs via Cocoa-dev > wrote: > > I'm trying to keep some older iOS code going, but I'm getting a deprecation > warning on many UIView class methods: > > +beginAnimations:context: > +setAnimationBeginsFromCurrentState: > +setAnimationDuration: > +commitAnim

Re: Subclassing NSCollectionViewFlowLayout

2019-10-21 Thread David Duncan via Cocoa-dev
> On Oct 21, 2019, at 3:26 AM, Arved von Brasch via Cocoa-dev > wrote: > > Hello list, > > Thanks to someone on the list who provided me with a clue, I found that if I > add this to my NSCollectionViewItem subclass: > > override func viewWillAppear() { >super.viewWillAppear() >

Re: Alerts in Xcode 11

2019-09-30 Thread David Duncan via Cocoa-dev
controller as it is used in > virtually all of the various view controllers. That's why I wanted it as a > function. > > -- Doug > >> On 30 September 2019, at 14:44, David Duncan wrote: >> >> What happens if you present it over your normal view cont

Re: Alerts in Xcode 11

2019-09-30 Thread David Duncan via Cocoa-dev
What happens if you present it over your normal view controller hierarchy instead of using another window? Has your application adopted UIWindowScene? > On Sep 30, 2019, at 5:36 PM, Doug Hardie via Cocoa-dev > wrote: > > I have some code that presents an alert to the user with information the

Re: Pausing an animation

2019-09-17 Thread David Duncan via Cocoa-dev
> On Sep 17, 2019, at 1:19 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I have a layer with two animations. > > I would like to pause this animation occasionally . > To do so, I set layer.speed = 0.0; > > In the past, this has worked (with slightly different animations). > However, in thi

Re: CABasicAnimation does not animate bounds.origin of a layer

2019-09-16 Thread David Duncan via Cocoa-dev
> On Sep 14, 2019, at 6:25 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > Maybe, I haven't understood how the animation of the bounds property works, > or the bounds property of a CALayer itself , > or I am making a stupid mistake. > > Here is my code: > >CALayer * imgLayer = [C

Re: UiView as slider with inertia

2018-10-01 Thread David Duncan
Yea, Jonathan’s recommendation is probably best. You would configure the collection view to scroll horizontally and just vend cells that are the numbers. You can probably configure UICollectionViewFlowLayout to do most of the heavy lifting for you, and perhaps just do a subclass to override tar

Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?

2018-08-31 Thread David Duncan
> On Aug 30, 2018, at 6:38 PM, Demitri Muna wrote: > > > On Aug 30, 2018, at 9:23 PM, Quincey Morris > wrote: > >> “Encapsulated layout height” sounds like one of the constraints that IB adds >> to your layout when it’s under-constrained at design time. Are you adding >> the other constra

Re: problem getting CALayer to draw an image

2018-04-05 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 s

Re: UITabBarItem selection Voice over speaks number apart from accessibility label,value

2018-04-05 Thread David Duncan
> -- > Thanks, > > Devarshi > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the

Re: dequeueReusableCellWithIdentifier bad performance in case of less number of cells?

2018-01-10 Thread David Duncan
t 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: unable to update UI on main thread in 10.13

2017-10-27 Thread David Duncan
> On Oct 27, 2017, at 7:17 AM, sqwarqDev wrote: > > >> On 27 Oct 2017, at 21:11, David Duncan wrote: >> >> In your background task which attributed string are you modifying? From the >> looks of your ‘updateUI’ function it seems like you are modifying the

Re: unable to update UI on main thread in 10.13

2017-10-27 Thread David Duncan
NSTiledLayerContents drawLayer:inContext:] + 181 > 35 QuartzCore 0x7fff5aa50b76 -[CALayer > drawInContext:] + 281 > 36 AppKit 0x7fff4d1ef0b9 > -[NSTileLayer drawInContext:] + 166 > > > > TIA >

Re: Converting a Storyboard into separate NIBs.

2017-06-19 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.

Re: Unable to extract JPEG from PHAsset

2017-06-17 Thread David Duncan
t 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: Does file-mapping a memory allocation work around RAM limits?

2017-05-04 Thread David Duncan
erformance considerations, the virtual address space is more akin to a 32-bit OS. This is of course an implementation detail that can be expanded in the future, but something to keep in mind if you plan to use mmap() a lot. From the sounds of what our app does, keeping around a single mmap()’s

Re: Question about the Main Thread

2017-04-25 Thread David Duncan
st bet is to consider the request simple queued, with no specific timing in relation to other requests to do the same. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-29 Thread David Duncan
> On Mar 22, 2017, at 2:25 PM, davel...@mac.com wrote: > >> >> On Mar 22, 2017, at 2:00 PM, David Duncan wrote: >> >>> >>> On Mar 22, 2017, at 4:15 AM, davel...@mac.com wrote: >>> >>>> >>>> On Mar 22, 2017, at 5

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-29 Thread David Duncan
name to NFD. You store it as NFC. 10.3: File system is converted to APFS, and the file name is NFD. You try to look up the file as NFC, and it fails. This would also mean that newly created files on APFS are always accessible, even via the “same” name, because the file system stored the filenam

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread David Duncan
I just want to remind everyone I’m *not* a file system’s engineer – I’m just trying to help Dave (and anyone else caught in this) make sure their app can find their files. > On Mar 23, 2017, at 1:53 AM, Alastair Houghton > wrote: > > On 22 Mar 2017, at 18:00, David Duncan wrot

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread David Duncan
is your issue. > > Thanks, > Dave Reed > > > ___ > > 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: 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: 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: 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: 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: 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: 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: 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-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-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: 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: 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: 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: 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: 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
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: 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: 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: 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: 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-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 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-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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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
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: 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: 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: 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: 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: 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: 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
_ > > 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: 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: 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: 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: 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: 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: 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: 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: 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 __

  1   2   3   4   5   6   7   8   9   10   >