Re: NSTableView: Rows from bottom up

2015-09-01 Thread Gary L. Wade
grow up. Half-awake right now, but hope that gets you started. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Aug 31, 2015, at 6:51 PM, Eric Gorr wrote: > > Normally when one adds the first row to a NSTableView, it will appear at the > top of the view and addition

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Check out this year's WWDC videos on autolayout, the part 1/2 ones. I believe (just now seeing this post) they will answer what you want and help you know that you are not alone in your pain. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 10:23

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Some of it does, but it still helps if you need to support earlier. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 11:19 AM, Dave wrote: > > Hi, > >> Check out this year's WWDC videos on auto-layout, the part 1/2 ones. I >>

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
document view and you should only handle changing its size. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
code, do a search for a tutorial using NSScrollView Autolayout. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 4, 2015, at 10:48 AM, Dave wrote: > > Hi, > >> It seems your thread keeps changing subjects so it's been difficult to >> follow your

Re: Adding Constraints in Code

2015-09-14 Thread Gary L. Wade
tion/Intro.html#//apple_ref/doc/uid/DTS40013589-Intro-DontLinkElementID_2 -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Lost memory, GCD, dispatch sources, Cocoa bindings & User interface

2015-09-16 Thread Gary L. Wade
self only. Also, is it possible your function never ends? Check your etc code there. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 16, 2015, at 4:00 AM, Jean Suisse wrote: > > Dear All, > > I have an app that uses Cocoa and dispatch sources leaking a lot

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Gary L. Wade
values, formatting them, and setting each appropriate text field's string value. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Sep 17, 2015, at 4:02 AM, Jean Suisse wrote: >> What makes you think that: >> >> (a) this is a lot of activity? > > >

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Gary L. Wade
since individual updates may show a temperature from the last reading and a frequency from this reading whereas a single full-pull will show the user only the one reading. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Sep 17, 2015, at 6:47 AM, Gary L. Wade > wrote: > &

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Gary L. Wade
much like yours where bindings is not the right solution. From how I read this, you are tightly coupling your view to your model. Consider decoupling your view-updating code like I suggested and you should see a significant change without a hack. -- Gary L. Wade (Sent from my iPad)

Re: Lost memory, GCD, dispatch sources, ?Cocoa bindings & User interface

2015-09-17 Thread Gary L. Wade
wn and take it to the manager. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Sep 17, 2015, at 7:25 AM, Jean Suisse wrote: > > Thanks for your reply. > If I understand you correctly, I am already doing all that by having one > updateUI funct

Re: CNCopySupportedInterfaces

2015-10-02 Thread Gary L. Wade
read in their docs. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Oct 2, 2015, at 9:21 AM, Gerriet M. Denkmann wrote: > > I am trying to update some source code which does every second: > > CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo and extracts t

Re: Safe time to add accessory view to NSSavePanel in sandboxed app?

2015-10-19 Thread Gary L. Wade
ber of web pages you should find related to the save panel UI hierarchy under sand boxing that should help, though. Search on things like NSSavePanel, sandbox, NSRemoteView, etc. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Oct 19, 2015, at 8:22 AM, Marek Hrušovský wrote

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

2015-11-10 Thread Gary L. Wade
ey. Anyway, this is a programmer error, not an API issue. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Nov 10, 2015, at 1:32 PM, Alex Zavatone wrote: > > And you guys have no idea how useful this discussion was to me today. > > Even though the KVO valueForK

Re: Identify image file count in directory

2015-11-13 Thread Gary L. Wade
Try going down a level to the BSD layer APIs for directory contents traversal. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Nov 13, 2015, at 8:28 AM, Jonathan Taylor > wrote: > > Hi all, > > I want to be able to identify quickly (programatically) ho

Re: Identify image file count in directory

2015-11-14 Thread Gary L. Wade
extensions from a known set (getting an extension from an NSString is also more expensive than traversing a C array of bytes to find the last period). And when you're going across a network boundary, the speed in doing more than needed really adds up. -- Gary L. Wade (Sent from my iPad) http

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-27 Thread Gary L. Wade
e this extended attribute has its integers in big-endian format. You might also look at the fileType parameter of the CoreServices FileInfo that maps the first 16 bytes, but that requires more checking. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Nov 27, 2015, at 2:00 P

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-28 Thread Gary L. Wade
maybe it'll make it into OS X 10.12. Some things do get added this way. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Nov 28, 2015, at 7:59 AM, Leonardo wrote: > > Hi Gary, > Thank you for your low level fine solution. Anyway, I'm afraid that Apple >

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-28 Thread Gary L. Wade
Hopefully by that time those software developers in Apple who misquote Donald Knuth will gain enough experience to realize there are good reasons even small APIs should be efficient. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Nov 28, 2015, at 10:38 AM, Charles Srstka wrote

Re: Bunch of CoreData based NSDocument questions.

2015-11-28 Thread Gary L. Wade
on to an outside service even though the data was saved. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Nov 26, 2015, at 10:41 PM, Motti Shneor wrote: > > He hits "Quit" by mistake, and the whole thing pops and disappears. He'll > have to open t

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-12-01 Thread Gary L. Wade
; you need to decide for yourself how far you need to go, but be sure to try this out on all kinds of alias files, especially those for files, folders, servers, and volumes. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 1, 2015, at 4:06 AM, Leonardo wrote: > &

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-12-01 Thread Gary L. Wade
that list don't really matter in the scheme of modern OS X, but depending on your needs, it might be important to go through as many as you can. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Dec 1, 2015, at 3:33 PM, Leonardo wrote: > > That works perfectly. Y

Re: Best Control for a Matrix these days?

2015-12-03 Thread Gary L. Wade
NSCollectionView -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 3, 2015, at 5:00 AM, Dave wrote: > > Hi, > > This is a Mac question, not iOS. > > Which Class is the latest best practise for displaying a matrix in a View. > > The matri

Re: Adding minutes to display time

2015-12-08 Thread Gary L. Wade
For your needs, if you have an NSDate, have you tried just using dateByAddingTimeInterval? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: CGContextClipToRects: invalid context 0x0.

2015-12-21 Thread Gary L. Wade
olved. Look at your code for things like that and forget about your perceived issue with the frameworks. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Dec 15, 2015, at 3:12 PM, Richard Charles wrote: > > CGContextClipToRects _

Re: Using CFHash to tell if a CFTypeRef has changed?

2016-01-11 Thread Gary L. Wade
ver change. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jan 11, 2016, at 10:18 AM, Dave wrote: > > Any one have any other techniques for telling if a CFTypeRef has changed? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Panes vs. Separate Windows

2016-01-11 Thread Gary L. Wade
t at a glance. An example I've encountered recently that may be just an Xcode bug/oddity is the color palette used in choosing "Other" colors, in that it can become a bit disconnected if you deselect a color object. In my opinion, the color palette is a great candidate for use in

Re: drawRect: wrong scale in a programmatically created window

2016-01-15 Thread Gary L. Wade
Mac and moving your windows between the two. By the way, even Apple developers have problems with this; try scaling the iPhone Simulator window on such a setup and moving it between the screens. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ __

Re: Removing Observers eats up memory

2016-01-25 Thread Gary L. Wade
hings actually changed; in your case that may be only the items in the array that were added or removed. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jan 25, 2016, at 1:10 AM, Markus Spoettl wrote: > > Hi, > > I have a view controller with a table view that

Re: Weird Problem, is this an XCode Bug?

2016-02-04 Thread Gary L. Wade
/ and wait for it to be marked as a duplicate and hope it gets fixed by Xcode 8. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Feb 4, 2016, at 6:59 AM, Dave wrote: > > XCode 7.2 (7C68). > Mac OS X (not iOS). > > Hi, > > I sent the following mess

Re: Weird Problem, is this an XCode Bug?

2016-02-04 Thread Gary L. Wade
you've modified your Xcode application or its constituent tools, you're not to blame for this. File the duplicate bug, and work around it like everyone else. There are some issues with Xcode worth tracking down; this isn't one of those. -- Gary L. Wade (Sent from my iPad) http://www.gary

Re: Weird Problem, is this an XCode Bug?

2016-02-04 Thread Gary L. Wade
archy description method. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Feb 4, 2016, at 9:05 AM, Dave wrote: > > Hi Again, > > I’m trying to debug a network of interwoven objects. To do all that with “po” > will take at least 10 times longer. > > The only ot

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread Gary L. Wade
t what you pay for. Some users will say, "Whoa!" and run away fast. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Feb 10, 2016, at 2:58 PM, Jean-Daniel Dupas wrote: > > >>> Le 10 févr. 2016 à 05:48, Trygve Inda a écrit : >>> >>

Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server

2016-02-10 Thread Gary L. Wade
and text it to me to figure it out. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Feb 10, 2016, at 4:50 PM, Ben Kennedy wrote: > > If you actually took a look at the details, you'd see that the cert is for > "ssl13.ovh.net" rather than "xenon

Re: How to write an RSS client for iOS

2016-02-13 Thread Gary L. Wade
For dates, you can try using NSDataDetector, but I’ve found recently that it doesn’t work well if you only have a date or a time, only if you have both; it adds a placeholder value in those cases and doesn’t report that you only have one or the other. In the case for RSS feeds, though, you shou

Re: How to write an RSS client for iOS

2016-02-13 Thread Gary L. Wade
>> On Feb 13, 2016, at 1:16 PM, Gary L. Wade >> wrote: >> >> For dates, you can try using NSDataDetector, but I’ve found recently that it >> doesn’t work well if you only have a date or a time, only if you have both; >> it adds a placeholder value in those cas

Re: Customizing a UISwitch?

2016-03-04 Thread Gary L. Wade
Maybe the docs should say iOS 7 and later since that's what it means. You can't do this in 7, 8, 9, or X/10/whatever iOS is coming this fall. It shouldn't be hard to roll your own UIControl subclass or work with the current classes. -- Gary L. Wade (Sent from my iPhone) http://w

Re: Customizing a UISwitch?

2016-03-04 Thread Gary L. Wade
Look instead at the set…:forState: methods. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 4, 2016, at 3:40 PM, Carl Hoefs wrote: > > I replaced the UISwitch with a UIButton. But when I set the button's new > image in the event method (myButto

Re: Customizing a UISwitch?

2016-03-04 Thread Gary L. Wade
That and the text are the backing objects used to present the various states. Nice to do non-state stuff to them but don't do state stuff to them. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 4, 2016, at 4:01 PM, Carl Hoefs wrote: > > Bingo! -set

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Gary L. Wade
> On Mar 2, 2016, at 11:20 AM, Bill Cheeseman wrote: > > Broadening my horizons is *always* one of my purposes. Sounds like your book will be getting a sequel by the end of it? Swift Cocoa Recipes for Apple Platforms? -- Gary L. Wade (Sent from my iPad) http://www.gar

Re: Apple Bug no response

2016-03-09 Thread Gary L. Wade
My oldest open bug will be 10 years old by WWDC 2016. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 9, 2016, at 12:50 PM, Eric E Dolecki wrote: > > I have bugs that have celebrated their fifth birthdays. Fire and forget. > > Sent from my iP6+ > >

Re: Storyboard weakness

2016-03-09 Thread Gary L. Wade
I'm not sure exactly about your layout, but maybe what you want are supplementary views? -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 9, 2016, at 3:04 PM, Rick Mann wrote: > > There's a severe weakness in Storyboards for which I'm hoping a b

Re: Storyboard weakness

2016-03-09 Thread Gary L. Wade
hough I had to do it in code. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 9, 2016, at 5:06 PM, Rick Mann wrote: > > Supplementary views scroll with the content. I want non-scrolling views. ___ Cocoa-dev mailing l

Re: Storyboard weakness

2016-03-09 Thread Gary L. Wade
some free tech support from your radar (I did for one tricky auto layout issue), sometimes you'll get ignored. You get nothing if you report nothing. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Mar 9, 2016, at 5:23 PM, Rick Mann wrote: > > I might be

Re: Why is the first of March a Tuesday

2016-03-25 Thread Gary L. Wade
The documentation needs to be more descriptive. The word "wrap" in the name of the option should fill in the missing reason. Feel free to file a radar. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Mar 25, 2016, at 9:09 AM, Gerriet M. Denkmann wrote: > >

Re: Proper way to set up constants when building an iOS framework

2016-04-19 Thread Gary L. Wade
open source, and Apple's own open source has these, too. If something isn't working, you're better off showing concrete examples from here on out. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Apr 19, 2016, at 10:20 AM, Alex Zavatone wrote: > > &

Re: Proper way to set up constants when building an iOS framework

2016-04-19 Thread Gary L. Wade
paste. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Apr 19, 2016, at 11:11 AM, Alex Zavatone wrote: > > >> On Apr 19, 2016, at 1:38 PM, Gary L. Wade wrote: >> >> Another thing I do is add FOUNDATION_EXPORT before my constants in headers, >&g

Re: How to Truncate lines in NSScrollView/NSClipView/NSTextView Combo

2016-04-26 Thread Gary L. Wade
wrapping&ie=UTF-8&oe=UTF-8> -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Apr 26, 2016, at 3:25 AM, Dave wrote: > > Hi, > > I’ve tried loads of different way of doing it but none of them work. Maybe > its because I’m not using A

Re: Where are my bytes hiding?

2016-05-05 Thread Gary L. Wade
this should suffice. There are wikis that go into greater detail. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 5, 2016, at 12:01 PM, Martin Wierschin wrote: >> Those files are compressed by the filesystem. In HFS+/MacOS Extended that >> means that the data fork

Re: H.265/HEVC encoding and decoding in mac os x using AVFoundation?

2016-06-17 Thread Gary L. Wade
elpful, do a grep on Xcode 7 and Xcode 8 and check out Apple's dev forums for items under disclosure. If you have access to Apple's WWDC 2016 videos, see if one of the related sessions might help. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Jun 17, 2016, a

Re: Swift 3 - Notification leaks

2016-06-18 Thread Gary L. Wade
Apple is carefully monitoring bugs for this, so file one. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 18, 2016, at 4:21 AM, Andreas Mayer wrote: > > The really bad thing is, some were keeping old windows

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
The simplest way to do what you're asking is to not send another request until your completion handler finishes. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 28, 2016, at 12:52 PM, Jim Adams wrote: > > I have an application that has the requirement tha

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
Try using a mutex on your array of requests, when adding and removing them, and only pull a request off the array when you're done with your completion handler or when you have nothing in progress such as when you first start. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
That may work, too, but it sure sounds like an awfully heavy way to do it. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Jun 28, 2016, at 2:16 PM, Peter Tomaselli wrote: > > In the past I’ve used NSOperation for this — wrap each request in an async > NSOperati

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
Based on his desire to do this serially, he would need a serial queue, and he's using asynchronous requests, so succeeding calls from his completion handler with a simple array in queue pattern is simpler than shoehorning it all into dispatch queues. -- Gary L. Wade (Sent from my iPhone)

Re: How can I get a single threaded network call in ObjC on iOS?

2016-06-28 Thread Gary L. Wade
ks, this is the same design you would use for synchronous requests except for the placement of the completion block and timing of its execution. When I refer to requests, these can be as simple as some application-defined value and actual NSURL and NSURLSession objects not created until step 4/5.

Re: Property synthesis trouble - 32 vs 64 bit builds

2016-07-05 Thread Gary L. Wade
You might need to write some lower level stuff, but some of the things in there can be done, albeit differently. Apple knows I've submitted a number of bugs and incident reports to get codecs supported in later frameworks. Do the same. It may happen. -- Gary L. Wade (Sent from my iPhone)

Re: Emailing from a daemon process

2016-07-07 Thread Gary L. Wade
stead. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 7, 2016, at 11:01 AM, Carl Hoefs wrote: >> The manufacturers are probably running their own SMTP servers, and the >> devices either talk to those directly, or (more likely) send HTTP requests >> to the ma

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

2016-08-19 Thread Gary L. Wade
, but that's an implementation detail you as a user shouldn't be too concerned about. The biggest cause for concern is if you're writing this code in MRC vs ARC since you'd have to manage these memory points yourself. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread Gary L. Wade
cross-platform architecture. If the architecture you’re using is something well known, you might get some better advice by others who have used it and how they’ve done things the Cocoa way. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Aug 20, 2016, at 10:59 AM

Re: GetNumEventsInQueue() for Cocoa

2016-08-20 Thread Gary L. Wade
. If you have a need to do polling of events and cannot do it with the current APIs available, write a radar up and possible open a tech support incident. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Aug 20, 2016, at 2:26 PM, Andreas Falkenhahn > wrot

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
Try clearing your table view's data source and delegate before releasing their object. It appears the pointer gets reassigned to an NSRectSet before your table view completely goes away but after its delegate and data source have. -- Gary L. Wade (Sent from my iPad) http://www.garywad

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
You would not see this if you hid or removed the table view first since it would not need its data source or delegate then. Try going with ARC or at least use autorelease on your delegate/data source. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Aug 26, 2016, at 8:42

Re: Mysterious crash with NSTableView

2016-08-26 Thread Gary L. Wade
this clearing should happen for you—I'm pretty sure the data source and delegate are weak, but I don't have the headers in front of me right now. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Aug 26, 2016, at 9:38 AM, Andreas Falkenhahn > wrote: > >>

Re: How to update UI from a background thread

2016-09-22 Thread Gary L. Wade
might give you a clue what you can do, if anything. Use that, Instruments, and the Activity Monitor app if ran on a non-developer's machine. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 22, 2016, at 9:09 AM, Dave wrote: > > Ok, will do thanks a lot.

Re: Maximum image size ?

2016-09-22 Thread Gary L. Wade
If you are dealing with truly astronomical image data, consider that "trying it yourself" may require multiple machines and/or multiple dedicated GPUs similar like how you see those multi-monitor displays shown at conferences and marketing displays. -- Gary L. Wade (Sent from my iP

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

2016-09-22 Thread Gary L. Wade
Look at these two lines: >__block NSString* noFillMeIn; ... > *noFillMeIn = @"wow"; Unless the original code is correct, you've got mismatched pointers, and you should try turning on more warnings and reading what they say, as well as trying the anal

Re: SecStaticCodeCheckValidity fails when app is lauched from Terminal

2016-09-26 Thread Gary L. Wade
another way like the actual executable? -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Sep 26, 2016, at 2:44 AM, Markus Spoettl wrote: > > I'm using SecStaticCodeCheckValidity() to self check the signature of my own > app when it is launched. This wo

Re: PopUp menus in tables

2016-10-04 Thread Gary L. Wade
If you’re using a view-based table view (as all should be nowadays), and you have the popup button you clicked on, get the enclosing NSTableRowView and call rowForView: -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Oct 4, 2016, at 4:03 PM, Steve Mills wrote:

Re: Where are the ICU Headers?

2016-10-06 Thread Gary L. Wade
lenge it, but my management decided we should hard code the mappings. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Oct 6, 2016, at 1:22 AM, Gerriet M. Denkmann wrote: > > The Icu stuff (57.1) is included in macOS 12. > > There is: > /usr/lib/libicucore.A.d

Re: Where are the ICU Headers?

2016-10-06 Thread Gary L. Wade
cur in the data across releases, or below an API layer, the interfaces would not be as much of an issue for most when using the current installed library. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Oct 6, 2016, at 5:23 AM, Alastair Houghton > wrote: > &g

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Gary L. Wade
What attributes in particular do you need to work with? In case you might be dealing with labels, those moved from the simple bitmask flag to separate values in their own extended attribute. Other values may have changed similarly but I haven't kept up with them. -- Gary L. Wade (Sent fr

Re: Getting/Setting FinderInfo attributes using native Cocoa API?

2016-10-13 Thread Gary L. Wade
Write bugs for the ones where there's no non-deprecated method. I don't recall all the values, but there may be UNIX-level functions to do some things. And if there's no real way now, look up the info on the structures and set them by way of the xattr calls. -- Gary L. Wade (Se

Re: observeValueForKeyPath:... called too often in macOS 12

2016-10-18 Thread Gary L. Wade
I have a thought. Do you have a binding somewhere on a property in NSUserDefaults? Maybe your document is getting synchronized to iCloud and/or getting autosaved very often? These are things I’ve seen that can cause uncharacteristically often updates. -- Gary L. Wade http://www.garywade.com

Re: Flipped print previews

2016-11-20 Thread Gary L. Wade
I remembered seeing something like that in an app that had been doing some things deep with the drawRect: call that was causing the view to become dirty again. I fixed it by getting rid of that code. Try looking for something like that first. -- Gary L. Wade (Sent from my iPhone) http

Re: Flipped print previews

2016-11-21 Thread Gary L. Wade
coloration options that might also help. You mentioned you broke on setNeedsDisplay. Try adding setNeedsDisplayInRect: and turn on a breakpoint for all classes, not just that one view. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Nov 21, 2016, at 1:13 PM, Jeff Eva

Re: Where are the gears?

2016-11-30 Thread Gary L. Wade
That is a bummer that Apple has made so many reusable images available for macOS but not as many for iOS as the original poster wanted. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Nov 30, 2016, at 9:55 AM, Richard Charles wrote: > > >> On Nov

Re: Documentation Workflow

2016-12-02 Thread Gary L. Wade
I bet the documentation has gotten leaner since Apple's developers have been dog-fooding the Xcode feature, Add Documentation, available under the Editor:Structure men path, and only using what’s in there. Just kidding…but maybe not! -- Gary L. Wade http://www.garywade.com/

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Gary L. Wade
supported. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 2, 2016, at 2:17 PM, Andreas Falkenhahn wrote: > > On 02.12.2016 at 22:55 Pascal Bourguignon wrote: > >> Yes, it’s “official”. >> I’ve read the document about what is allowed an

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-03 Thread Gary L. Wade
code-signed; no downloadable plugins are allowed. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 3, 2016, at 3:00 AM, Andreas Falkenhahn wrote: > >> On 03.12.2016 at 00:40 Jens Alfke wrote: >> >> dlopen is hardly undocumented; it’s part of the core B

Re: Drag UITableView up/down

2016-12-06 Thread Gary L. Wade
hidesBarsOnSwipe so check those out. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 6, 2016, at 11:38 AM, Eric E. Dolecki wrote: > > I'm looking for a chunk of view controller code that allows for: > > A UITableView. You can drag the whole tab

Re: NSTouchBar in Carbon

2016-12-12 Thread Gary L. Wade
it and use that to call initWithWindowRef: on your Carbon window. That may be enough to tie into Cocoa’s responder chain; not sure how controls can be bridged from Carbon to Cocoa, but at least the NSWindow would be the best place to know how to configure a touch bar. -- Gary L. Wade http

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
doing that, try working through things in Interface Builder first so you get an idea of what you need to do. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 14, 2016, at 7:47 AM, Andreas Falkenhahn > wrote: > > I'm creating my GUI programmatically. It s

Re: Control default color inconsistencies

2016-12-14 Thread Gary L. Wade
Set the background color of self.view to something other than black and your button and label will be more visible. I believe the color for your table view is a UIColor defined as a category in UITableView.h or close to there. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ >

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
and the other to be the extra size needed to fill the gap. I also chose to animate the constant values, so the size-change is smooth to the user. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 14, 2016, at 2:19 PM, Doug Hill wrote: > > I'm se

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
more attractive to grow the icon and compress the title in that animation, choosing a scale-to-fill option, when I determined there was an icon. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Dec 14, 2016, at 2:52 PM, Doug Hill wrote: > > Gary, > >

Re: Autolayout warnings

2016-12-14 Thread Gary L. Wade
; self.iconSubtitleLabelLeading.constant = newIconSubtitleLabelLeadingConstant; [self.iconIndicator.superview layoutIfNeeded]; }]; } } -- Gary L. Wade http://www.garywade.com/ <h

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
display defaults to what the selected region uses. Few people change things after that, although I am, preferring a four-digit year vs two-digit for the short date format. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 8:34 AM, Sandor Szatmari

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
pport. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 1:02 PM, Sandor Szatmari > wrote: > > Gary, > > On Jan 3, 2017, at 14:52, Gary L. Wade <mailto:garyw...@desisoftsystems.com>> wrote: > >>

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Gary L. Wade
= DateFormatter.localizedString (from:date,dateStyle:.none,timeStyle:.short) If that doesn’t work, look at the comparable method in NSDateComponentsFormatter. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 3, 2017, at 4:12 PM, Sandor Szatmari > wrote: > > Gary, > >

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
In what way is its controller getting in the way? Those do a lot together. If used with a collection view, you might find my solution helps: https://whatweretheythinkingblog.wordpress.com/2016/11/19/effectively-using-uisearchcontroller-with-uicollectionview/ -- Gary L. Wade (Sent from my iPad

Re: Enabling UISearchBar cancel button?

2017-01-12 Thread Gary L. Wade
, though. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Jan 12, 2017, at 12:57 PM, Rick Mann wrote: > > I need my search bar to appear under the nav bar. We also have an extra view > outside and above the collection view. On top of that, I don't creat

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
ng version and go forward with that. If you can compare a working vs immediately non-working, that's even better. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Feb 13, 2017, at 8:58 AM, Andreas Falkenhahn > wrote: > >> On 13.02.2017 at 17:33 じょいすじょん wrote:

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
Your assignments for the File’s Owner and Application objects are messed up. First, clear the custom class values for these two objects. After that, connect the delegate outlet in the Application object to your embedded AppDelegate object. -- Gary L. Wade http://www.garywade.com/ <h

Re: Sometimes all my menus are disabled

2017-02-13 Thread Gary L. Wade
. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 13, 2017, at 12:54 PM, Andreas Falkenhahn > wrote: > > On 13.02.2017 at 19:49 Gary L. Wade wrote: > >> Your assignments for the File’s Owner and Application objects are >> messed up. First,

Re: Sometimes all my menus are disabled

2017-02-15 Thread Gary L. Wade
other solutions and services that may be better, but for a single-user team wanting to be budget-conscious and keep your code private, that’s what I’d recommend. Once you have your repository in place, tracking errant changes by Xcode migrations is just as easy as looking at a diff. -- Gary L

Re: A horizontal line rule within a NSAttributedString?

2017-02-18 Thread Gary L. Wade
I would use NSTextAttachment, create an attributed string from it, and combine your three attributed strings into one. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 18, 2017, at 2:16 PM, Daryle Walker wrote: > > An idea for formatted output of my

Re: A horizontal line rule within a NSAttributedString?

2017-02-18 Thread Gary L. Wade
Either try subclassing NSTextAttachment and overriding the methods in NSTextAttachmentContainer or use a subclass of NSTextAttachmentCell. -- Gary L. Wade http://www.garywade.com/ <http://www.garywade.com/> > On Feb 18, 2017, at 3:26 PM, Daryle Walker wrote: > > What is the atta

Re: Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-23 Thread Gary L. Wade
figure out that for you and return that. Secondly, ISO-8859-1 and UTF-8 are not equivalent. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Nov 23, 2014, at 1:06 PM, Diederik Meijer | Ten Horses > wrote: > > Hi list, > > I am having trouble getting useful d

Re: WTF is happening?

2014-12-13 Thread Gary L. Wade
If all you care about is if an object is a proxy or not, look at isProxy. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Dec 13, 2014, at 11:06 AM, Maxthon Chan wrote: > > What I am doing here is scanning all loaded classes for subclasses of a > certain class

  1   2   3   4   >