Re: iOS screen physical size (or px density)

2013-12-22 Thread Doug Hill
/Reference/UIScreen.html#//apple_ref/occ/instp/UIScreen/currentMode -[UIScreenMode size] -[UIScreenMode pixelAspectRatio] https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIScreenMode_class/Reference/Reference.html#//apple_ref/occ/instp/UIScreenMode/ Good luck! Doug Hill

Re: NSException category?

2014-02-06 Thread Doug Hill
of your custom class MyUnsupportedSessionResolutionException with whatever user info you want and re-throw that one. Good luck! Doug Hill On Feb 6, 2014, at 10:44 AM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: I would like to be able to add additional context info to certain exceptions

Re: NSException category?

2014-02-06 Thread Doug Hill
I don't see any such behavior in the Objective-C language reference. Feel free to read those chapters for more information. :) There's also an Apple document Introduction to Exception Programming Topics for Cocoa which has some good information. Doug Hill On Feb 6, 2014, at 11:08 AM, Carl

Re: Disabling screen capture

2014-02-20 Thread Doug Hill
a DVD than do a screenshot. At the very least, I doubt this will get resolved in any time-frame for your product/company. $0.02 Doug Hill On Feb 20, 2014, at 12:25 PM, Bradley O'Hearne br...@bighillsoftware.com wrote: On Feb 20, 2014, at 1:12 PM, Kyle Sluder k...@ksluder.com wrote

Re: dispatch_sync(dispatch_get_main_queue() UI weirdness

2014-09-05 Thread Doug Hill
), ^{ dispatch_sync(dispatch_get_main_queue(), ^{ // Do your NSOpenPanel or other UI }); }); This way, you can still execute your UI code synchronously on the main queue but you don’t block AppKit in your callback. Good luck! Doug Hill On Sep 5, 2014, at 1:49 PM, Sandy McGuffog mcguff

Weird infinite loop in _logos_method$VCModCore$__ABT$viewDidLoad

2015-06-16 Thread Doug Hill
any insight into what this is or possibly why it’s happening. Thanks! Doug Hill http://chartcube http://chartcube/.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Scary Stuff!

2015-06-17 Thread Doug Hill
data and they suddenly get sent to a malicious app. I’m looking forward to fixes and/or workarounds soon. Doug Hill On Jun 17, 2015, at 12:44 PM, Jens Alfke j...@mooseyard.com wrote: As usual, don’t put too much weight into the bite-size digests from the press, especially the Register

Re: Scary Stuff!

2015-06-17 Thread Doug Hill
On Jun 17, 2015, at 2:07 PM, Jens Alfke j...@mooseyard.com wrote: On Jun 17, 2015, at 1:17 PM, Doug Hill cocoa...@breaqz.com mailto:cocoa...@breaqz.com wrote: For most of the security problems, you could rewrite your app to opt-out of the insecure APIs, system services, etc. and use

Re: Anyone else having trouble with the Provisioning Profile?

2015-05-27 Thread Doug Hill
On May 26, 2015, at 6:53 PM, Doug Hill cocoa...@breaqz.com wrote: I’ve noticed very long loading times for the pages in the Certs, IDs Profiles sections, but it eventually loads. I just tried it now in Chrome and it took ~5mins of staring at that spinner for the list of Provisioning profiles

Re: Anyone else having trouble with the Provisioning Profile?

2015-05-26 Thread Doug Hill
I’ve noticed very long loading times for the pages in the Certs, IDs Profiles sections, but it eventually loads. I just tried it now in Chrome and it took ~5mins of staring at that spinner for the list of Provisioning profiles to load. Doug Hill https://chartcube.com/ https://chartcube.com

Re: Thread-safe singleton with lazy initialisation

2015-08-18 Thread Doug Hill
A couple of things: you can On Aug 18, 2015, at 9:29 AM, Maxthon Chan m...@maxchan.info wrote: Two questions: 1) How good will a Mac hold up as a server? I can serve static content from the CDN I rented but CGIKit code is dynamic stuff. If a Mac and OS X holds well, I can throw Linux

Re: How to terminate an NSTask whenever my app terminates?

2015-08-31 Thread Doug Hill
s could use it to monitor its parent process and exit if the parent process exits." Good luck! Doug Hill http://chartcube.com/ <http://chartcube.com/> > On Aug 31, 2015, at 4:32 PM, Jens Alfke <j...@mooseyard.com> wrote: > > (I know this has come up here before, but I can’t g

Re: best way to implement a clickable grid?

2015-09-14 Thread Doug Hill
to be dynamic (n buttons in y groups), you might consider using a tableview or collection view to construct this. This is more work but will be the most customizable and reusable. Good luck! Doug Hill http://chartcube <http://chartcube/>.com/ > On Sep 14, 2015, at 5:17 PM, Patrick J

Can't get dynamically sized Collection View cells

2015-09-29 Thread Doug Hill
tly? Unfortunately, the WWDC session doesn’t go into detail on how they got their collection view to autoresize the cells and there’s isn’t any sample code for the project described in the video. It would be great to know the “approved” way to implement this behavior. Thanks! Doug H

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Doug Hill
? Thanks. Doug Hill > On Sep 30, 2015, at 3:54 PM, Peter Tomaselli <vast.gra...@gmail.com> wrote: > > Certainly! Just to be clear (ended up revisiting some of my research on this > today), I don't think it is possible to do this with just estimatedItemSize > alone.

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Doug Hill
? Are there a number of other steps that aren’t documented that one needs to do? Any Apple sample code that implements this? Apple experts please chime in! Doug Hill > On Sep 29, 2015, at 7:12 PM, Peter Tomaselli <vast.gra...@gmail.com> wrote: > > Hi Doug! Funny you mention thi

Re: Custom font for UIAlertAction

2015-12-15 Thread Doug Hill
style/appearance of UI controls, either app-wide or when controls are contained in a specific view controller. I’ve done this for many UIKit views/controllers with great results, particularly when there isn’t a public interface to modify their style. Doug Hill > On Dec 15, 2015, at 10:43 AM, Da

Re: Custom font for UIAlertAction

2015-12-15 Thread Doug Hill
What I do is use the Appearance proxies to customize the button, not the UIAlertController. For example, use the Appearance proxy to set font of a button when contained in a UIAlertController. Doug Hill > On Dec 15, 2015, at 12:09 PM, Eric E. Dolecki <edole...@gmail.com> wrote: >

Re: Custom font for UIAlertAction

2015-12-15 Thread Doug Hill
have been on to the next thing. > > Eric > > On Tue, Dec 15, 2015 at 3:33 PM Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: > What I do is use the Appearance proxies to customize the button, not the > UIAlertController. For example, use the Appear

Re: Getting the final value from an NSSlider drag

2015-12-29 Thread Doug Hill
.slider sendActionOn:NSLeftMouseUpMask]; } - (IBAction)valueChangedFinally:(id)sender { NSLog(@“Here is the final slider value upon mouse up:%@", [sender stringValue]); } Presumably the other bindings/etc. code would still work to update your real-time display. Doug Hill _

Re: Getting the final value from an NSSlider drag

2015-12-30 Thread Doug Hill
ally:(id)sender >> { >>NSLog(@“Here is the final slider value upon mouse up:%@", [sender >> stringValue]); >> } >> >> Presumably the other bindings/etc. code would still work to update your >> real-time display. >> >> Doug Hill > > No th

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Doug Hill
> On May 24, 2016, at 3:48 PM, Kyle Sluder <k...@ksluder.com> wrote: > > On Tue, May 24, 2016, at 05:46 PM, Kyle Sluder wrote: >> On Tue, May 24, 2016, at 05:37 PM, Alex Zavatone wrote: >>> >>> On May 24, 2016, at 4:02 PM, Kyle Sluder wrote: >>&g

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Doug Hill
> On May 24, 2016, at 4:38 PM, Doug Hill <cocoa...@breaqz.com> wrote: > > >> On May 24, 2016, at 3:48 PM, Kyle Sluder <k...@ksluder.com> wrote: >> >> On Tue, May 24, 2016, at 05:46 PM, Kyle Sluder wrote: >>> On Tue, May 24, 2016, at 05:37 PM,

Re: How to know if an NSView has pending draws

2016-02-04 Thread Doug Hill
Jeff, I was wondering, are you attempting to sync the drawing with the music, or is this a performance issue you’re seeing? Doug Hill > On Feb 4, 2016, at 3:52 PM, Jeff Evans <jev...@ars-nova.com> wrote: > > Clark, it's a music app; a piece is composed and placed on the scr

Re: How to know if an NSView has pending draws

2016-02-04 Thread Doug Hill
> translating something from ios - but it struck me that if I just waited until > no more draws were coming in that would be one way out. > > > On Feb 4, 2016, at 4:31 PM, Doug Hill wrote: > > Jeff, > > Are you attempting to sync the drawing with the music or are

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Doug Hill
other good tidbits of info in there, check it out and hopefully it will cover what you want to know. Doug Hill > On Feb 29, 2016, at 6:58 AM, Dave <d...@looktowindward.com> wrote: > > Hi, > > I have an inheritance chain Classes that are NSCoding and NSCopying

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Doug Hill
s that copying an NSView yourself without super support would be difficult/impossible in practice. However, I would be interested in others with more information to give an opinion. Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: How to record screen in iOS

2016-01-21 Thread Doug Hill
Hello, The feature you’re proposing sounds like malware to me, or could easily be repurposed for malware. Discussing ways to do this with undocumented APIs is borderline ethical and probably not acceptable use on an official Apple mailing list. I think the real answer is there’s no documented

Move views relative to other view with Autolayout

2016-03-10 Thread Doug Hill
I’m trying to implement a side panel that moves into place horizontally and push content over when it is shown. I set up an auto layout constraint so that an another view is a fixed number of pixels from the side view. I then want to move the origin of the side view and have the other view move

Re: Move views relative to other view with Autolayout

2016-03-10 Thread Doug Hill
decide to use the constraint when originally laying out the view but ignores it when the view layout changes? Apparently I don’t understand this very well but the docs don’t seem to go out of their way to describe this difference either. Thanks. Doug Hill > On Mar 10, 2016, at 1:15

Re: Move views relative to other view with Autolayout

2016-03-10 Thread Doug Hill
> On Mar 10, 2016, at 1:35 PM, Ken Thomases <k...@codeweavers.com> wrote: > > On Mar 10, 2016, at 3:21 PM, Doug Hill <cocoa...@breaqz.com> wrote: >> >> I can see that people use multiple constraints when moving between different >> layouts. But what I don

Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?

2016-03-04 Thread Doug Hill
this helps you. Doug Hill > On Mar 4, 2016, at 12:07 PM, Alex Zavatone <z...@mac.com> wrote: > > I'm in the middle of some fun where there is a wrapper class to a lib that's > written in C and the c function has a char string that I'd like to return > back to or somehow pa

Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?

2016-03-04 Thread Doug Hill
more work than is needed though. Anyways, I didn’t use delegates, notifications, etc. The easiest way to integrate these wrappers into your app is to have a pure Objective-C interface and do all work inside those, but probably the most effort to write. Doug Hill > On Mar 4, 2016, at 1:14

Re: Returning a string value from a c function to a Objective-C class method. Is there an approved approach?

2016-03-04 Thread Doug Hill
o have to deal with all kinds of error handling and possibly exception handling. Good luck! Doug Hill > On Mar 4, 2016, at 3:36 PM, Alex Zavatone <z...@mac.com> wrote: > > I guess I neglected to mention this was on iOS. > > Your words make me happy to see that I’m at lea

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Doug Hill
> On May 24, 2016, at 1:02 PM, Kyle Sluder <k...@ksluder.com> wrote: > > On Tue, May 24, 2016, at 12:33 PM, Doug Hill wrote: >> OK, this might have been more obvious to people, but it finally came to >> me how to handle the keyboard display. >> >> In

Re: Scrolling table view when the keyboard appears

2016-05-24 Thread Doug Hill
much better now. Doug Hill > On May 20, 2016, at 5:21 PM, Doug Hill <cocoa...@breaqz.com> wrote: > > I’m implementing a chat message view with a table view and a text field > underneath it. I want the most recent messages at the bottom, and the scroll > position always to

Scrolling table view when the keyboard appears

2016-05-20 Thread Doug Hill
I’m implementing a chat message view with a table view and a text field underneath it. I want the most recent messages at the bottom, and the scroll position always to stay at the last row in the table. There are some tricks to making sure the table scrolls to the bottom when it’s first drawn

Re: Recurrent background thread

2016-05-13 Thread Doug Hill
:delaySecs target:self selector:@selector(doStuff:) userInfo:nil repeats:YES]; Hope this helps. Doug Hill > On May 13, 2016, at 12:34 PM, Carl Hoefs <newsli...@autonomy.caltech.edu> > wrote: > > I want a method running on a

Justification of collection cells in sections

2016-08-02 Thread Doug Hill
in the other sections flow from left to right. Any ideas on how to make the single item section flow from left to right rather than centered? Thanks. Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Justification of collection cells in sections

2016-08-02 Thread Doug Hill
Raglan, Thanks for the response. I was hoping to allow the Flow Layout to handle this rather than me handling the layout. Given how the layout works for multiple items in a section, I would presume there is some way to make this work the same for a single item in a section. Am I wrong? Doug

Re: NSImage drawInRect deadlock

2016-08-10 Thread Doug Hill
> On Aug 10, 2016, at 4:49 PM, Graham Cox wrote: > > >> On 9 Aug 2016, at 4:05 AM, Andrew Keller wrote: >> >> In my app, I’m creating thumbnails of images. To do this in parallel, I’m >> using the global background dispatch queue: > > > Just

Dynamic-width Collection View

2016-08-10 Thread Doug Hill
c use case be doable without having to get into the complexity of the layout class? Honestly, the documentation for this is terrible. There's a lot of hand-waving and assumptions that don't quite spell out most of the details of this use case. Thanks.

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
> On Aug 10, 2016, at 11:10 AM, Doug Hill <cocoa...@breaqz.com> wrote: > > I'm currently trying to implement something that seems basic but has been > driving me nuts: making a Collection View with cells that are dynamic-width > and height at runtime. > &g

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
> On Aug 10, 2016, at 1:35 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Aug 10, 2016, at 13:29 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> Again, looking for any ideas, pointers, etc.

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
dynamically at runtime via 'estimatedItemSize' Given that, I'm open to ideas on what I should override in a layout subclass. Particularly ones that don't require me to reimplement #1 and #2 above. Doug Hill > On Aug 10, 2016, at 2:16 PM, Jonathan Hull <jh...@gbis.com> wrote: > &

Re: Justification of collection cells in sections

2016-08-03 Thread Doug Hill
So, does anyone know if the current behavior I mentioned is a bug? Is the behavior of Flow Layout documented? Should I file a bug with Apple? Also, what would be some quick ways to modify the flow layout behavior to handle this case with one item per section? Doug Hill > On Aug 2, 2016, a

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
> On Aug 10, 2016, at 2:03 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Aug 10, 2016, at 13:42 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> this basically means that Apple's docume

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
this… all code written in mail. I actually started working on this, and will report if it gets me any further. Appreciate the feedback. Doug Hill > Thanks, > Jon > >> On Aug 10, 2016, at 2:27 PM, Doug Hill <cocoa...@breaqz.com >> <mailto:cocoa...@breaqz.com>> wr

Re: Dynamic-width Collection View

2016-08-10 Thread Doug Hill
lem. I'll report anything I find out. Doug Hill On Aug 10, 2016, at 3:30 PM, Peter Tomaselli <vast.gra...@gmail.com> wrote: > > Sorry if this is kind of a cheesy reply, but a while ago I believe we were > speaking about “left-justifying” a collection view as well? I think I

Re: Vertical orientation of UISlider

2016-07-20 Thread Doug Hill
A rotate transform will work fine if you don't have any customizations. For example, a thumb, min/max image will end up being rotated as well, so you'll need to transform those too. Doug On Jul 20, 2016, at 11:55 AM, Jeff Kelley wrote: > > Hi Carl, > > Have you

Re: Emailing from a daemon process

2016-07-07 Thread Doug Hill
Another thing to bring up is that users may not want an open Sendmail server running on their machine just so a background process can send email without the user's intervention. Huh, this is almost like what malware does. Doug Hill > On Jul 7, 2016, at 10:46 AM, Jens Alfke <j...@mooseya

Re: Hello. Is there a way to stop Apple CrashReporter from collecting crashes of my process?

2016-07-11 Thread Doug Hill
Maybe you could strip symbols from your binary? This would at least stop private info from being shown to the user. You mgiht also remove any logging statements from your shipping binary if that also exposes private information. Doug Hill > On Jul 11, 2016, at 7:04 AM, Motti Shneor <mot

Re: Justification of collection cells in sections

2016-08-08 Thread Doug Hill
mple “tweaked” UICollectionViewFlowLayout subclass — so my > impression is that this approach in general is kosher. > > On Wed, Aug 3, 2016 at 3:38 PM, Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: > So, does anyone know if the current behavior I mentione

Re: Overriding the release mehod

2017-01-25 Thread Doug Hill
second. 2. Feel free to encourage Apple to improve their search functionality Cheers! Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Overriding the release mehod

2017-01-25 Thread Doug Hill
> On Jan 25, 2017, at 10:59 AM, Dave wrote: > > Hi, > >> Look at Apple's Foundation NSObject protocol reference document for the >> -release method. It includes this statement: > > Could you point me to the URL I still can’t find it. Apple’s documentation is >

[off-topic] Re: Overriding the release mehod

2017-01-25 Thread Doug Hill
> On Jan 25, 2017, at 11:56 AM, Dave <d...@looktowindward.com> wrote: > > >> On 25 Jan 2017, at 19:37, Doug Hill <cocoa...@breaqz.com> wrote: >> >> >>> On Jan 25, 2017, at 11:23 AM, Dave <d...@looktowindward.com >>> <mailto:d

Re: Swift: Draw a circle with tic marks at it's edge?

2017-01-18 Thread Doug Hill
transform. This is dependent on the design you have whether it could be rotated and still look good. Good luck! Doug Hill > On Jan 18, 2017, at 12:34 PM, Eric E. Dolecki <edole...@gmail.com> wrote: > > [image: Screen Shot 2017-01-18 at 3.28.22 PM.png] > > I have been taske

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

2016-08-19 Thread Doug Hill
FWIW, I use the [Classname new] syntax when allocating just about any object instead of [[Classname alloc] init]. Including with arrays, especially NSMutableArray. I've never seen any issues. Doug Hill > On Aug 16, 2016, at 2:20 AM, Alex Zavatone <z...@mac.com> wrote: > > Ye

Re: Justification of collection cells in sections

2016-08-19 Thread Doug Hill
justified in multiple sections. Any ideas? Am I missing something? Doug Hill > On Aug 8, 2016, at 12:35 PM, Doug Hill <cocoa...@breaqz.com> wrote: > > Hello Peter, > > Thanks for the info. I'm still trying to see if I can do what I want with the > stock flow layou

Re: Justification of collection cells in sections

2016-08-19 Thread Doug Hill
multiple sections in the collection view. So, is there somewhere else where the cell is being centered. Any ideas? Am I missing something? Doug Hill > On Aug 8, 2016, at 12:35 PM, Doug Hill <cocoa...@breaqz.com> wrote: > > Hello Peter, > > Thanks for the info. I'm still tryi

Re: -forceCancel an NSOperation

2017-03-01 Thread Doug Hill
e best you can do, as has been suggested, is to set a flag that the blocked thread can check after it wakes up again so it knows not to continue processing. Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Does setFormatter() retain?

2016-08-24 Thread Doug Hill
in NSControl. While it might be good to know it's a property so we can make use of property syntax correctly, how it goes about keeping a reference to this object is unimportant to the caller. Doug Hill PS IMHO using manual ref-counting because there is a perceived time-savings from learning ARC

Re: Does setFormatter() retain?

2016-08-24 Thread Doug Hill
Also, if you're unsure whether you're following ref-counting rules correctly, the static analyzer in Xcode will give very detailed warnings about incorrect uses. Just another way to determine if you're using ref-counting correctly. Doug Hill > On Aug 24, 2016, at 2:49 PM, Doug Hill <

Re: How to update UI from a background thread

2016-09-21 Thread Doug Hill
re your code is doing the right thing. Perhaps there’s another issue that’s causing the problems you see. Maybe you could provide some code for the case where you use the dispatch_async technique below to accomplish your task and when you don’t and, what happens in each case. Doug Hill __

Re: Stupid objective-c question

2016-09-22 Thread Doug Hill
compare the context to a static pointer. And a static string maybe makes it easier to identify a particular context. I’m actually changing some old code right now to use these recommendations. Good luck! Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev

Re: Stupid objective-c question

2016-09-21 Thread Doug Hill
*anotherArray = [emptyArray arrayByAddingObject:anObject]; But this creates a new array. Consequently, any meaningful array won’t be the one created with [[NSArray alloc] init]. Doug Hill > On Sep 21, 2016, at 9:19 PM, Jeff Evans <jev...@ars-nova.com> wrote: > > Whoa - maybe I'

Re: Stupid objective-c question

2016-09-21 Thread Doug Hill
the above test, you could also try turning off the LLVM code-gen setting "gcc_reuse_strings". (Which parenthetically, you probably wouldn't want to do in shipping code, particularly if you have a lot of strings.) But yeah, as everyone says, it's generally not a good thing to r

Re: Stupid objective-c question

2016-09-21 Thread Doug Hill
> On Sep 21, 2016, at 8:33 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 21, 2016, at 19:00 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> Just to be clear, the original question was sp

Re: Stupid objective-c question

2016-09-21 Thread Doug Hill
ing comparisons entirely, resulting in more efficient notification parsing." So, instead of using a string literal, create a static object and do pointer comparisons is what Apple recommends. Hope this helps. Doug Hill ___ Cocoa-dev mailing list

Re: Stupid objective-c question

2016-09-21 Thread Doug Hill
> On Sep 21, 2016, at 10:07 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Sep 21, 2016, at 21:10 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> I believe the original question was why yo

Re: Passing param by reference then using within block throws exception

2016-09-20 Thread Doug Hill
to eventually assign to the method parameter. Doug Hill > On Sep 20, 2016, at 2:06 PM, Steve Mills <sjmi...@mac.com> wrote: > > I'm turning on ARC for a project (yay) and have run into a problem I can't > wrap my head around. It always worked fine before ARC. When I turn zo

Re: Mysterious crash with NSTableView

2016-08-26 Thread Doug Hill
> On Aug 26, 2016, at 9:20 PM, Jeff Szuhay wrote: > > >>> On Aug 26, 2016, at 8:44 PM, Sandor Szatmari >>> wrote: >>> >>> >>> However, in your case I wonder what the static analyzer in Xcode tells you >>> about the bug you see? >> >> I

Re: Mysterious crash with NSTableView

2016-08-26 Thread Doug Hill
On Aug 26, 2016, at 1:52 PM, Jens Alfke wrote: > > On Aug 26, 2016, at 8:42 AM, Andreas Falkenhahn > wrote: >> >> But once again, I think it's a crime that there is no mentioning of this in >> the class >> documentation of "setDelegate" and

Re: Toolbar hiding on rotation?

2016-08-29 Thread Doug Hill
idden for toolbar hiding and it seems to work fine. See if this property works for you, and let us know. Otherwise, there might be some other code hiding the toolbar. Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: iOS: Preventing a singleton from being deallocated when the app is in the background.

2016-10-19 Thread Doug Hill
> On Oct 19, 2016, at 2:14 PM, Jens Alfke <j...@mooseyard.com> wrote: > > >> On Oct 19, 2016, at 2:04 PM, Doug Hill <cocoa...@breaqz.com >> <mailto:cocoa...@breaqz.com>> wrote: >> >> Presumably if the app is terminated due to inactivity eve

Re: iOS: Preventing a singleton from being deallocated when the app is in the background.

2016-10-19 Thread Doug Hill
ound, is it? Or something like that? > > Why would that cause a singleton to be dealloced? The app just stops getting > CPU time for a while. > > —Jens Presumably if the app is terminated due to inactivity everything would be dealloc'd including singletons. No idea

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
. But the settings are just numbered so I don't know which it might be. A little experimentation might find the right one. But in summary, if you are using SF font, you don't need to set the Vertically Centered Colon attribute as it should be on by default. Doug Hill > On Nov 28, 2016, at 11:12

Re: Vertically Centered Colon

2016-11-28 Thread Doug Hill
, will probably not work automatically due to the different fonts for the numerals around the colon. At this point, I'd say your working solution is probably as good as you're going to get. Doug Hill > On Nov 28, 2016, at 12:33 PM, Doug Hill <cocoa...@breaqz.com> wrote: > > A c

Re: Swift 3 macOS read keyboard

2016-10-11 Thread Doug Hill
FirstResponder' seems like the easiest and most standard way to go. #2 could also work, as NSViewController also derives from NSResponder, so, you could have the controller handle all key events as well. All the other options have various levels of hackiness that are probably more trouble than they

Re: Swift 3 macOS read keyboard

2016-10-11 Thread Doug Hill
ead-only property. Implement this in your NSResponder subclass: - (BOOL)acceptsFirstResponder { return YES; } Doug Hill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

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

2016-12-06 Thread Doug Hill
I've wondered about this before, but maybe some Objective-C runtime experts know. Does writing directly to the ivar backing a property bypass the ARC features of the property. For example, will a strong property be retained if you write directly to the ivar? If not, that's your problem. Doug

Autolayout warnings

2016-12-14 Thread Doug Hill
t get this runtime warning when calling hideComments, only the 'show' case. Finally, things actually work at runtime because it's nice enough to "break" the constraint that I deactivated in code. But I would like to not have these warnings. Any ideas on what's going

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Quincey, Thanks for the reply. > On Dec 14, 2016, at 2:40 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Dec 14, 2016, at 14:19 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >>

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
> On Dec 14, 2016, at 2:46 PM, Ken Thomases <k...@codeweavers.com> wrote: > > On Dec 14, 2016, at 4:19 PM, Doug Hill <cocoa...@breaqz.com> wrote: >> >> I'm seeing warnings in the console when I dynamically make autolayout >> constraints active/inactive at

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Ok, this is more good information to keep in mind when designing autolayout constraints. Given that my design isn't animatable, it's back to the autolayout drawing board. Again. Doug Hill > On Dec 14, 2016, at 3:07 PM, Gary L. Wade <garyw...@desisoftsystems.com> > wrote: > &g

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
to activate/deactivate constraints inside a [UIView animateWithDuration…] I get no animation. :( Doug Hill > On Dec 14, 2016, at 2:49 PM, Gary L. Wade <garyw...@desisoftsystems.com> > wrote: > > If I understand you correctly, you might prefer the approach I chose to do. > R

Re: Autolayout warnings

2016-12-14 Thread Doug Hill
Great, more good stuff to know! However, trying this out I see that some views animate and others don't (just jump into place). I guess I'll look into a more animatable design. Doug Hill > On Dec 14, 2016, at 3:24 PM, Ken Thomases <k...@codeweavers.com> wrote: > > On Dec 14, 2

Re: Vertically Centered Colon

2016-11-30 Thread Doug Hill
> On Nov 29, 2016, at 11:06 PM, Alex Zavatone <z...@mac.com> wrote: > > > On Nov 30, 2016, at 12:10 AM, Doug Hill wrote: > >> After some trial and error, I figured out how to accomplish the San >> Francisco font features described below. I updated my documen

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 12:58 AM, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 30 Nov 2016, at 18:33, Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> Still hoping Apple will make SF font specific featur

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
ve this in the future. With so many easy to use features available, Apple has done the developer community a big favor. My guess is that these features will be supported for some time, as they are used by many Apple apps, and Apple has publicly encouraged developers to use them as well. Doug Hi

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 8:17 AM, Doug Hill <cocoa...@breaqz.com> wrote: > >> On Dec 1, 2016, at 12:58 AM, Alastair Houghton >> <alast...@alastairs-place.net> wrote: >> >> Agreed. At the very least it needs to explicitly document the set of >>

Re: Vertically Centered Colon

2016-12-01 Thread Doug Hill
> On Dec 1, 2016, at 11:20 AM, Alastair Houghton <alast...@alastairs-place.net> > wrote: > > On 1 Dec 2016, at 19:05, Doug Hill <cocoa...@breaqz.com> wrote: >> >> Just made another breakthrough. I finally figured out why we have the >> vert

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 3:58 PM, Rick Mann <rm...@latencyzero.com> wrote: > > >> On Nov 29, 2016, at 09:38 , Doug Hill <cocoa...@breaqz.com> wrote: >> >> Wow, it's awesome that this works! And now that I know how to set these >> attributes for a U

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
at the moment. Hope this all helps! Doug Hill > On Nov 29, 2016, at 9:38 AM, Doug Hill <cocoa...@breaqz.com> wrote: > > I suppose if I have some time I’ll try them out and see if I can do my own > documentation. For reference, here are a few different forms that I was

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 1:33 AM, Gerriet M. Denkmann <gerri...@icloud.com> wrote: > >> On 29 Nov 2016, at 03:33, Doug Hill <cocoa...@breaqz.com> wrote: >> >> A little experimentation might find the right one. > > A “little” is kind of misleading.

Re: Vertically Centered Colon

2016-11-29 Thread Doug Hill
> On Nov 29, 2016, at 10:04 AM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Nov 29, 2016, at 09:38 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> wrote: >> >> But seriously, why didn’t Apple document what

Re: Animating autolayout constraint changes for subviews

2017-01-03 Thread Doug Hill
the frame property. Trying to get an idea if this a good technique to try. Doug Hill > On Dec 30, 2016, at 11:56 AM, David Duncan <david.dun...@apple.com> wrote: > >> >> On Dec 30, 2016, at 11:50 AM, Doug Hill <cocoa...@breaqz.com> wrote: >> >> >

Re: How does chromium simulate keyboard events using CGEventPost in pre login agent?

2017-01-05 Thread Doug Hill
It’s possible “untrusted” means not code-signed. > On Jan 4, 2017, at 11:36 PM, Sai Prasanna wrote: > > I have created a pre-login agent which uses CGEventPost for simulating > keyboard. FYI I am developing a remote control app similar to teamviewer. > > Keyboard (I

Re: Animating autolayout constraint changes for subviews

2016-12-28 Thread Doug Hill
tps://developer.apple.com/devcenter/download.action?path=/videos/wwdc_2012__sd/session_228__best_practices_for_mastering_auto_layout.mov> But in general, the SDK documentation on animating autolayout constraint changes is borderline non-existent. Doug Hill > On Dec 28, 2016, at 5:54 PM, Steve Ch

Re: Animating autolayout constraint changes for subviews

2016-12-28 Thread Doug Hill
view animate at the same time. Also, as I mentioned, a button will exhibit the same behavior, probably because it has a UILabel inside it to show the button text. Thanks again for any ideas. Doug Hill > On Dec 28, 2016, at 12:50 PM, Ken Thomases <k...@codeweavers.com> wrote: >

  1   2   >