Re: Drawing same text and graphics in different CGContextRef

2023-09-22 Thread David Duncan via Cocoa-dev
t, 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...@apple.com>>

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

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

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

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 are con

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

Re: Scaling a UIImage

2020-11-02 Thread David Duncan via Cocoa-dev
if 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

Re: Throttling drawing to vertical refresh

2020-10-23 Thread David Duncan via Cocoa-dev
sm 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.10.2020 at 01:22

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: >

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
ontroller 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 controller hie

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

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

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 =

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

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

Re: problem getting CALayer to draw an image

2018-04-05 Thread David Duncan
ts.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%40apple.com > > This

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

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

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

2018-01-10 Thread David Duncan
r 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: 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 <sqwarq...@icloud.com> wrote: > > >> On 27 Oct 2017, at 21:11, David Duncan <david.dun...@apple.com> wrote: >> >> In your background task which attributed string are you modifying? From the >> looks

Re: unable to update UI on main thread in 10.13

2017-10-27 Thread David Duncan
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 yo

Re: Unable to extract JPEG from PHAsset

2017-06-17 Thread David Duncan
t; 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 email sent to dav

Re: Does file-mapping a memory allocation work around RAM limits?

2017-05-04 Thread David Duncan
ng to allocate memory. And so even though iOS is a 64-bit OS, due to other performance 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 kee

Re: Question about the Main Thread

2017-04-25 Thread David Duncan
d (or many such things). Your best 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

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 <david.dun...@apple.com> wrote: >> >>> >>> On Mar 22, 2017, at 4:15 AM, davel...@mac.com wrote: >>> >>>> >>

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-29 Thread David Duncan
file name handed to the file system in NFC form. File system converts the file 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 acc

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-23 Thread David Duncan
Mar 2017, at 18:00, David Duncan <david.dun...@apple.com> wrote: >> >> So there was another explanation posted on the bug that I’m not certain you >> got, but which I think may explain. >> >> Basically the concept is that since APFS doesn’t normalize file names,

Re: Unicode filenames with Apple File System and UIManagedDocument

2017-03-06 Thread David Duncan
mine it is your issue. > > Thanks, > Dave Reed > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments t

Re: NSGradient & NSTextField’s focus ring

2017-02-20 Thread David Duncan
> Thanks >>> Yilei He >>> >>> >>> ___ >>> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>> >>> Please do not post admin re

Re: NSGradient & NSTextField’s focus ring

2017-02-20 Thread David Duncan
ins(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 ___ Cocoa-dev mailing list (Co

Re: UINavigationBar content margins in UIPresentationController subclass

2017-01-03 Thread David Duncan
> Is there another way I can work around this limitation in the meantime? > > Dan > >> On Dec 7, 2016, at 10:35 AM, David Duncan <david.dun...@apple.com >> <mailto:david.dun...@apple.com>> wrote: >> >> >>> On Dec 7, 2016, a

Re: Animating autolayout constraint changes for subviews

2016-12-30 Thread David Duncan
> On Dec 30, 2016, at 11:50 AM, Doug Hill <cocoa...@breaqz.com> wrote: > > >> On Dec 30, 2016, at 11:38 AM, David Duncan <david.dun...@apple.com> wrote: >> >> >>> On Dec 28, 2016, at 4:14 PM, Doug Hill <cocoa...@breaqz.com> wrote: >>

Re: Animating autolayout constraint changes for subviews

2016-12-30 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://l

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 <andr...@falkenhahn.com> > wrote: > > On 25.12.2016 at 16:57 David Duncan wrote: > >>> On Dec 23, 2016, at 9:05 AM, Andreas Falkenhahn <andr...@falkenhahn.com> >>> wrote: > >>> Furthe

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

2016-12-25 Thread David Duncan
4:35 Andreas Falkenhahn wrote: > >> On 22.12.2016 at 21:58 David Duncan wrote: > >>> Do you do anything special when going into the background? The >>> snapshot is taken shortly after your application is placed in the >>> background, so if your view hierarchy

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 <z...@mac.com> 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 t

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

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

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.c

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/Unsubscribe/Update your Subscription

Re: Accessing pointer structure members inside block function

2016-12-13 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.du

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
view? You would basically do the same thing you 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.

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
your issue would be to wrap the presenting 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 <david.dun...@apple.com >> <mailto:david.dun...@apple.com

Re: UINavigationBar content margins in UIPresentationController subclass

2016-12-07 Thread David Duncan
0, height: > self.presentingViewController.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) > &g

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

2016-12-06 Thread David Duncan
ling list (Cocoa-dev@lists.apple.com > <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 yo

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

2016-12-06 Thread David Duncan
ot 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...@ap

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 <andr...@falkenhahn.com> > wrote: > >> On 29.11.2016 at 22:28 David Duncan wrote: >> >

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 <andr...@falkenhahn.com> > wrote: > > On 29.11.2016 at 17:35 David Duncan wrote: > > >>> On Nov 29, 2016, at 11:30 AM, Andreas Falkenhahn <andr...@falkenhahn.com> >>> 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 <andr...@falkenhahn.com> > 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

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.apple.com) P

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 <andr...@falkenhahn.com> > 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 p

Re: How to detect rotation in progress in viewDidLayoutSubview

2016-11-26 Thread David Duncan
, if 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 <andr...@falkenhahn.com> > wrote: > &

Re: Hardware-accelerated scaling on iOS without OpenGL

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

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

2016-11-22 Thread David Duncan
the image view needs to be 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 <david.dun...@apple.com > <mailto:david.dun...@apple.com>> wrote: > > >

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

2016-11-22 Thread David Duncan
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: Implementing own text prediction on UITextField

2016-09-29 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.com

Re: Maximum image size ?

2016-09-22 Thread David Duncan
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: CALayer kCAGravityResizeAspectFill and kCAGravityTop

2016-09-21 Thread David Duncan
the image orientation – if 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 lis

Re: CALayer kCAGravityResizeAspectFill and kCAGravityTop

2016-09-21 Thread David Duncan
m > > 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: Success with NSTableView weak delegates?

2016-09-20 Thread David Duncan
> On Sep 20, 2016, at 2:47 PM, Sean McBride <s...@rogue-research.com> wrote: > > On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: > >>> On Sep 20, 2016, at 1:21 PM, Sean McBride <s...@rogue-research.com> wrote: >>> >>> Hi all,

Re: Success with NSTableView weak delegates?

2016-09-20 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

Re: Unusual Conditional Formatting

2016-09-07 Thread David Duncan
ng the inconsistent 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-dev-admi

Re: Toolbar hiding on rotation?

2016-08-29 Thread David Duncan
ew project 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? -- Davi

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

2016-08-24 Thread David Duncan
tor 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 Dunca

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread David Duncan
ost 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...@appl

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

2016-08-19 Thread David Duncan
s.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 ___ Cocoa-dev mailing list (Cocoa-

Re: Xcode 8 - XCODE_VERSION_MAJOR causes compilation issue

2016-08-11 Thread David Duncan
uilding with Xcode 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 ___

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

2016-08-11 Thread David Duncan
ided to create MyMutableNumber 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 <z...@mac.com> wrote: > > > On Jun 22, 2016, at 1:59 PM, David Duncan wrote: > >> >>> On Jun 22, 2016, at 11:54 AM, Alex Zavatone <z...@mac.com> wrote: >>> >>> >>> On Jun 22,

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

2016-06-22 Thread David Duncan
onnect things in a storyboard. If you 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 vi

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 <tcu...@vafer.org> wrote: > > This is odd. This seems to eventually work > > self.edgesForExtendedLayout = UIRectEdge.None &

Re: UINavigationController back gesture animation

2016-06-15 Thread David Duncan
e.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 > > T

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

2016-06-02 Thread David Duncan
really translate well 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 recommen

Re: Popover arrow point never properly aligned

2016-06-01 Thread David Duncan
/cocoa-dev/logancautrell%40ftml.net >>> >>> This email sent to logancautr...@ftml.net >> > > > -- > Rick Mann > rm...@latencyzero.com <mailto:rm...@latencyzero.com> > > > > ___ > > Coc

Re: Programmatically pinch a UIView

2016-05-11 Thread David Duncan
for something like this (note that this will 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-a

Re: Is a portrait-only launch image possible?

2016-03-14 Thread David Duncan
like the welcome screen 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 <cejw...@gmail.com&

Re: Is a portrait-only launch image possible?

2016-03-13 Thread David Duncan
sented fullscreen (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 ___

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

2016-02-24 Thread David Duncan
hese circumstances). > > Of course, if the view geometry never changes, or the relationship 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-de

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

2016-02-24 Thread David Duncan
you won’t need to do > this. There’s no reason 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) P

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

2016-02-24 Thread David Duncan
You can however fill it with the copy 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 >> > <q

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

2016-02-24 Thread David Duncan
a-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 ___ Cocoa-de

Re: Confusion around tint color and UIImage rendering mode

2016-01-11 Thread David Duncan
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

Re: Custom font for UIAlertAction

2015-12-15 Thread David Duncan
v@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%40apple.com &g

Re: Custom font for UIAlertAction

2015-12-15 Thread David Duncan
il. What I’m saying 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 <david.dun...@apple.com> > napisał(a): >

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
ns(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 ___ Cocoa-dev mailing list (Cocoa-

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 5:17 PM, Rick Mann <rm...@latencyzero.com> wrote: > >> >> On Dec 9, 2015, at 16:42 , David Duncan <david.dun...@apple.com> wrote: >> >> >>> On Dec 9, 2015, at 4:35 PM, Rick Mann <rm...@latencyzero.com> wrote

Re: Supporting iPad Pro keyboard in iOS apps?

2015-12-09 Thread David Duncan
gt; rm...@latencyzero.com <mailto:rm...@latencyzero.com> > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderato

Re: iPad Pro apps given more memory?

2015-12-09 Thread David Duncan
> On Dec 9, 2015, at 4:35 PM, Rick Mann <rm...@latencyzero.com> wrote: > >> >> On Dec 9, 2015, at 16:24 , David Duncan <david.dun...@apple.com> wrote: >> >> >>> On Dec 9, 2015, at 3:36 PM, Rick Mann <rm...@latencyzero.com> wrote

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
e.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 ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Adding minutes to display time

2015-12-08 Thread David Duncan
print (date!) //This 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 Dun

Re: UIView underlying rects for drawRect

2015-12-07 Thread David Duncan
> the layer bounds automatically is helpful if that’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 moder

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

2015-11-10 Thread David Duncan
ther 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 moder

Re: Fade when changing window's rootViewController possible?

2015-11-09 Thread David Duncan
completion:nil]; > } > > 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 de

Re: Fade when changing window's rootViewController possible?

2015-11-07 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: 'barHideOnSwipeGestureRecognizer' works with two UIScrollViews but not with two others

2015-11-06 Thread David Duncan
lease 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 d

Re: runOnMainQueueWithoutDeadlocking and all its evils.

2015-11-06 Thread David Duncan
st. > 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   >