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

2016-04-19 Thread Gary L. Wade
. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Apr 19, 2016, at 11:11 AM, Alex Zavatone <z...@mac.com> 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

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

2016-04-19 Thread Gary L. Wade
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 <z...@mac.com> wrote: > > >

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 <gerr...@mde

Re: Storyboard weakness

2016-03-09 Thread Gary L. Wade
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 <rm...@latencyzero.com> wrote: > >

Re: Storyboard weakness

2016-03-09 Thread Gary L. Wade
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 <rm...@latencyzero.com> wrote: > > Supplementary views scroll with the content. I want non-scrolling views. ___

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 <rm...@latencyzero.com> wrote: > > There's a severe weakness in Storyboards for w

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 <edole...@gmail.com> wrote: > > I have bugs that have celebrated their fifth birthdays. Fire and forget. >

Re: Starting out with storyboards (on Mac)

2016-03-05 Thread Gary L. Wade
> On Mar 2, 2016, at 11:20 AM, Bill Cheeseman <wjcheese...@gmail.com> 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 fro

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 <newsli...@autonomy.caltech.edu&

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 <newsli...@autonomy.caltech.edu> wrote: > > I replaced the UISwitch with a UIButton. But when I set the button's new > image i

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://www.garywade.com

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

Re: How to write an RSS client for iOS

2016-02-13 Thread Gary L. Wade
r so we > know what was found. > >> On Feb 13, 2016, at 1:16 PM, Gary L. Wade <garyw...@desisoftsystems.com> >> 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 tim

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 <mail...@xenonium.com> wrote: > > >>> Le 10 févr. 2016 à 05:48, Tr

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

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

Re: Weird Problem, is this an XCode Bug?

2016-02-04 Thread Gary L. Wade
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 <d...@looktowindward.com> wrote: > > XCode 7.2 (7C68). > Mac OS X (not iOS). > > Hi, > > I sent the

Re: Weird Problem, is this an XCode Bug?

2016-02-04 Thread Gary L. Wade
description method. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ > On Feb 4, 2016, at 9:05 AM, Dave <d...@looktowindward.com> 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.

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.garywade.com/ >

Re: Removing Observers eats up memory

2016-01-25 Thread Gary L. Wade
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 <ms_li...@shiftoption.com> wrote: > > Hi, > > I have a view control

Re: drawRect: wrong scale in a programmatically created window

2016-01-15 Thread Gary L. Wade
y adding a non-Retina monitor to a Retina 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) ht

Re: Panes vs. Separate Windows

2016-01-11 Thread Gary L. Wade
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 a popover. -- Gary L

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

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

Re: CGContextClipToRects: invalid context 0x0.

2015-12-21 Thread Gary L. Wade
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 <rcharles...@gmail.com> wrote: > > CGCon

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 <d...@looktowindward.com> wrote: > > Hi, > > This is a Mac question, not iOS. > > Which Class is the latest best practise for displaying a matrix in

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-12-01 Thread Gary L. Wade
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 <mac.iphone@gmail.com> wrote: > > That

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-12-01 Thread Gary L. Wade
cide 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 <mac.iphone@gmail.com> wrote: &

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-28 Thread Gary L. Wade
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 <mac.iphone@gmail.com> wrote: > > Hi Gary, > Thank you for your low level fine solution. Anyway, I'm afraid that Ap

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

Re: Bunch of CoreData based NSDocument questions.

2015-11-28 Thread Gary L. Wade
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 <su...@bezeqint.net> wrote: > > He hits "Quit" by mistake, and the whole thing pops and disappears. He'll >

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-27 Thread Gary L. Wade
s 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

Re: Identify image file count in directory

2015-11-14 Thread Gary L. Wade
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://www.garywade.com/ > On

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 <jonathan.tay...@glasgow.ac.uk> > wrote: > > Hi all, > > I want to be

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

2015-11-10 Thread Gary L. Wade
, 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 <z...@mac.com> wrote: > > And you guys have no idea how useful this discussion was to me today. > > Even though the KV

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

2015-10-19 Thread Gary L. Wade
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ý <xhrus...@gma

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 <gerr...@mdenkmann.de> wrote: > > I am trying to update some source code which does every second: > > CNCopySupportedInterfaces and CNC

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

2015-09-17 Thread Gary L. Wade
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 <garyw...@desisoftsyste

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

2015-09-17 Thread Gary L. Wade
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 <jean.li...@gmail.com> wrote: > > Thanks for your reply. > If I understand you correctly, I am already doing all that by having one > updateUI function

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

2015-09-17 Thread Gary L. Wade
their 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 <jean.li...@gmail.com> wrote: >> What makes you think that: >> >> (a) t

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

2015-09-17 Thread Gary L. Wade
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) http

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

2015-09-16 Thread Gary L. Wade
, 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 <jean.li...@gmail.com> wrote: > > Dear All, > > I have an app that uses Cocoa and dispatch sources l

Re: Adding Constraints in Code

2015-09-14 Thread Gary L. Wade
#//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 list. Contact

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
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. Contact the moderators at cocoa-dev-admins

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
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 <d...@looktowindward.com> wrote: > > Hi, > >> It seems your thread keeps changing subjects so it's been difficult to >

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 <d...@looktowindward.com> wrote: > > Hi, > >> Check out this year's WWDC videos on auto-layout, the part

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 AM, Dave

Re: NSTableView: Rows from bottom up

2015-09-01 Thread Gary L. Wade
it to 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 <mail...@ericgorr.net> wrote: > > Normally when one adds the first row to a NSTableView, it will appear at the &g

Re: Tech update avoiding legacy code

2015-08-14 Thread Gary L. Wade
being the final reason to upgrade their computer or OS. Don't assume they won't, just ask, or just tell them the next version will require such-and-such OS X and leave it up to them for the next step. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com

Re: Xcode 6.4 on the Developer download site.

2015-08-07 Thread Gary L. Wade
Be sure you have Developer Tools selected as a filter. For some reason, versions after than 6.1.1 were not tagged for iOS or OS X. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Aug 7, 2015, at 1:27 PM, Alex Zavatone z...@mac.com wrote: Yeah, no idea. I downloaded i fine

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Gary L. Wade
When the file arrives, verify that the contents of it have also arrived. It's possible you may just be processing that a file was created but nothing yet has been put into it. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Jul 26, 2015, at 2:28 PM, Robert Martin robmar

Re: Auto Layout and Resizable NSViews

2015-07-20 Thread Gary L. Wade
Depending on your design, why not just use an NSSplitView to do all that for you? -- 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

Re: C Sharp?

2015-07-17 Thread Gary L. Wade
L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 17, 2015, at 8:26 AM, Jens Alfke j...@mooseyard.com wrote: On 16 Jul 2015, at 21:26, Gary L. Wade garyw...@desisoftsystems.com mailto:garyw...@desisoftsystems.com wrote: Just keep in mind that according to Apple's App Store

Re: C Sharp?

2015-07-17 Thread Gary L. Wade
That link isn't very useful. It pretty much regurgitates what Apple has already published and doesn't address the issue of rejection. Nevertheless, it's not my concern anymore, but I've forwarded your statements on to the team for further evaluation. -- Gary L. Wade (Sent from my iPhone) http

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
it), and our company and Apple were criticized royally in the press. Don't be that app. C# makes apps fall flat. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 16, 2015, at 1:14 PM, Jonathan Mitchell jonat...@mugginsoft.com wrote: On 16 Jul 2015, at 19:56, Glenn R. Martin

Re: C Sharp?

2015-07-16 Thread Gary L. Wade
Actually the requirements are for both Mac and iOS; the app I referred to was on the Mac App Store. But, if that's not an issue, then that's okay. I just wanted to point that out in case it was a potentiality. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 16, 2015, at 2

Re: Just a request for a quick sanity check please.

2015-07-14 Thread Gary L. Wade
. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 14, 2015, at 8:27 AM, Alex Zavatone z...@mac.com wrote: I'm looking at some Cocoa spaghetti that seems to violate all the laws or reason and I'd just appreciate some verification that there is no reason whatsoever

Re: Edit menu localisation, default application menu

2015-07-11 Thread Gary L. Wade
with County (I imagined a Monty Python skit could from that). -- Gary L. Wade (Sent from my iPad) 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

Re: PSA: floor(NSFoundationVersionNumber) doesn't work with Yosemite or later

2015-07-11 Thread Gary L. Wade
(build numbers with embedded letters, dotted values, etc.) and stores them in an NSIndexPath making comparisons between two versions very easy. Whenever I encounter a new version number format, I add a new parser and string formatter tied to a new enum. -- Gary L. Wade (Sent from my iPad) http

Re: selectText of NSTextField on focus

2015-07-06 Thread Gary L. Wade
You want to select the text using the associated text view of the NSTextField control. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 6, 2015, at 10:54 AM, Richard Charles rcharles...@gmail.com wrote: On Jul 6, 2015, at 10:15 AM, Richard Charles rcharles...@gmail.com

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
an example of how there's always consequences to our actions. -- Gary L. Wade (Sent from my iPad) 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. Contact

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
of reasons, but I will soon. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Jun 13, 2015, at 4:42 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: Bingo. Even after reading all the posts in this thread, I still don’t know what problem Swift addresses, and no one seems

Re: Language options: Objective-C, Swift, C or C++?

2015-06-13 Thread Gary L. Wade
an example of how there's always consequences to our actions. -- Gary L. Wade (Sent from my iPad) 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. Contact

Re: Language options: Objective-C, Swift, C or C++?

2015-06-12 Thread Gary L. Wade
the only non-ambiguous character that could be used. Besides, in Swift, we can now have variable names in Klingon script! Well, when Klingon is finally added to Unicode, that is. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jun 12, 2015, at 7:32 PM, Carl Hoefs newsli

Re: NSDocumentTitlebarPopoverViewController zombie on Yosemite

2015-05-28 Thread Gary L. Wade
We saw the same issue starting with 10.10.3 and continuing through current 10.10.4 builds. Write up a radar and reference radar://problem/20368338 as a duplicate instance. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 28, 2015, at 11:34 AM, Matthew LeRoy mle

Re: Inserting a task into the run loop

2015-03-22 Thread Gary L. Wade
original runloop design, might add the wrong constraints to your system. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Mar 22, 2015, at 4:28 PM, Graham Cox graham@bigpond.com wrote: On 23 Mar 2015, at 9:52 am, Ken Thomases k...@codeweavers.com wrote: I'd be curious

Re: Cleaning up a project from static/global variables

2015-03-21 Thread Gary L. Wade
If you’re wanting to look at all the globals in your project in one place, go to the Symbol Navigator and make sure the Class/Protocol filter is turned off and the Project-Defined filter is turned on. This will give you easy access to your project-defined globals. -- Gary L. Wade http

Re: Displaying a scaling, relative time or date

2015-01-08 Thread Gary L. Wade
When it comes to any localized date or number formatters, see if ICU supports it, especially the included version on the earlier OS you need to support. If not but a later one does, you could just include it in your app. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Jan 7

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 m...@maxchan.info wrote: What I am doing here is scanning all loaded classes for subclasses of a certain class

Re: WTF is happening?

2014-12-13 Thread Gary L. Wade
, then change your design. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Dec 13, 2014, at 11:40 AM, Maxthon Chan m...@maxchan.info wrote: Ain’t work! Will crash if an Object derivative showed up. I am scanning ALL loaded classes and only subclasses of a certain class

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

2014-11-23 Thread Gary L. Wade
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 diede...@tenhorses.com wrote: Hi list, I am having trouble getting useful data from this url

Re: start with OSX 5.1.1

2014-07-30 Thread Gary L. Wade
Your Xcode 3.2.6 project most likely references at most 10.6, which is not supported by Xcode 5.1.1, so you'll need to adjust your project's SDKs to match those installed. Select the project in the file viewer, choose the build settings panel, and enter SDK in the search field. -- Gary L. Wade

Re: start with OSX 5.1.1

2014-07-30 Thread Gary L. Wade
just adjusting the deployment target and base SDKs gets things going. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jul 30, 2014, at 10:12 AM, Jens Alfke j...@mooseyard.com wrote: On Jul 30, 2014, at 6:53 AM, Gary L. Wade garyw...@desisoftsystems.com wrote: Your Xcode

Re: start with OSX 5.1.1

2014-07-30 Thread Gary L. Wade
If you do that, make sure the owner/groups match the app to make sure you don't modify them accidentally. And one of these days Apple will utilize those deprecation/available attributes so we can arbitrarily set and test SDKs without having to do any of this. -- Gary L. Wade (Sent from my

Re: [NSMutableData resetDataRangeTo:(NSRange)range];

2014-07-14 Thread Gary L. Wade
of the object that would be okay with that difference. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On Jul 14, 2014, at 12:15 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: Okay, 1 last question on this. Is there a way to promote-in-place an NSData object

Re: Issue with -[NSOutlineView autosaveExpandedItems] - SOLVED

2014-07-11 Thread Gary L. Wade
On 7/11/2014, 1:29 PM, Bill Cheeseman wjcheese...@gmail.com wrote: And I've discovered another difficulty, although I think I can handle it. Sounds like it’s time to update Cocoa Recipes to a 3rd edition to fully share these nuggets. -- Gary L. Wade http://www.garywade.com

Re: UUIDs for FAT Drives

2014-07-08 Thread Gary L. Wade
/NSURL), and drives are physical entities while volumes are logical data on those, so you may have multiple volumes per drive. -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Simple question? NSButton/checkbox color

2014-06-06 Thread Gary L. Wade
to handle any intermediate drawing states (including the actual check mark, whatever it may be) and retina issues that may come up. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: How to write a .icns file

2014-06-02 Thread Gary L. Wade
The file format for an icns file is the same as an 'icns' resource, which is documented in IconStorage.h. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jun 2, 2014, at 5:04 PM, John Brownie john_brow...@sil.org wrote: On Sat May 31 2014 12:37:59 GMT+1000 (PGT) Gary L

Re: How to write a .icns file

2014-05-30 Thread Gary L. Wade
and/or provide extra info for your 'icns' merge operation. -- Gary L. Wade (Sent from my iPad) http://www.garywade.com/ On May 29, 2014, at 3:38 PM, John Brownie john_brow...@sil.org wrote: Simplified from the previous question, which didn't get any responses: How can I write a .icns file when

Re: string literals and performance

2014-05-25 Thread Gary L. Wade
and Condicion for the latter. While it is true you will see little, if any, performance difference in the execution of your code, you will find your coding and debugging performance improved by doing these safer and best practices of software development. -- Gary L. Wade (Sent from my iPhone) http

Re: Document architecture: locking document files while open

2014-05-22 Thread Gary L. Wade
I've only just run across this as a potential solution to a prospective need, but might Kernel Authorizations be what you need? https://developer.apple.com/library/mac/technotes/tn2127/_index.html -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 22, 2014, at 9:21 AM, Jens

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
: is short-circuiting the speaking? It’s been a while since I’ve worked on my app, but I remember some calls will stop any current speaking. -- Gary L. Wade http://www.garywade.com/ On 5/14/2014, 11:15 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 15 May 2014, at 08:41, Jens Alfke j

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 15, 2014, at 5:53 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: On 15 May 2014, at 15:53, Gary L. Wade garyw...@desisoftsystems.com wrote: Also, I haven’t tried this sequence myself, but I noticed in your sample

Re: How to speak Chinese on 10.9.2

2014-05-15 Thread Gary L. Wade
going to WWDC in a couple of weeks, be ready to talk with whatever group you'll need to; that's how I found out the cause of the memory leak bug by one of the team members bringing up the source code right there. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 15, 2014

Re: NSNumberFormatter 10.0+ style exception with zero

2014-05-07 Thread Gary L. Wade
the XIB, lock the XIB so Xcode won't change it, and then relaunch Xcode. You may not have to go that far, but I wouldn't doubt that support for pre-10.4 number formatters to be lost in test for later-XIB formats. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On May 7, 2014

Re: Help with Help

2014-04-29 Thread Gary L. Wade
was running Turkish. That particular case may be workable now, but a similar one may occur. See how Apple does this in Xcode for their documentation viewer. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Apr 29, 2014, at 10:52 AM, Gordon Apple g...@ed4u.com wrote: We would

Re: ARC Retain Cycles

2014-04-26 Thread Gary L. Wade
[A]in't [N]o [S]uch [T]hing [A]s [A] [F]ree [L]unch TANSTAAFL TANS TAA FL Tends To Fail -- Gary L. Wade http://www.garywade.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: ARC Retain Cycles

2014-04-26 Thread Gary L. Wade
. Xcode guesses me wrong at least 1/3 of the time. -- Gary L. Wade http://www.garywade.com/ On 4/26/2014, 11:06 AM, Alex Kac a...@webis.net wrote: You’re a programmer - you’re supposed to know what happens under the hood. That’s part and parcel of developing good, optimized software

Re: Fast NSArray compare

2014-04-15 Thread Gary L. Wade
objects when you¹re in /Documents. -- Gary L. Wade 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. Contact the moderators at cocoa-dev-admins

Re: accessing values along NSIndexPath

2014-03-26 Thread Gary L. Wade
If all you have is a nested set of arrays, then you¹ll have to write your own objectAtIndexPath: method that walks your nested set of arrays. -- Gary L. Wade http://www.garywade.com/ On 3/26/2014, 1:14 PM, Torsten Curdt tcu...@vafer.org wrote: Going through a NSTreeController feels like

Re: CFXMLCreateStringByUnescapingEntities() bombs on #13207494

2014-03-25 Thread Gary L. Wade
Since this could be a security exploit with malformed data being allowed in a bad way, you might set your bug to be a security issue and that¹ll raise eyebrows fast. You do remember how you could crash an app by using a malformed file URL some time back? -- Gary L. Wade http://www.garywade.com

Re: Class name as NSString and problem with NSLog?

2014-03-19 Thread Gary L. Wade
for such extensions, and that it should be applied to the appropriate methods in NSPredicate.h. -- Gary L. Wade http://www.garywade.com/ On 3/19/2014, 2:13 PM, Sean McBride s...@rogue-research.com wrote: On Thu, 6 Mar 2014 15:47:08 -0800, Greg Parker said: I remember the ³Month Of Apple Bugs

Re: NSDecimalNumber queries

2014-03-09 Thread Gary L. Wade
The class NSDecimalNumber can already handle arithmetic operations. Look up its documentation directly. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Mar 9, 2014, at 4:34 AM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: I require to use NSDecimalNumber

Re: NSNumber : method to return pointer to represented value

2014-02-22 Thread Gary L. Wade
. -- Gary L. Wade http://www.garywade.com/ On 2/22/2014 7:33 AM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: Hence NSDecimal -getValue: populates a pointer to a double. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Disabling screen capture

2014-02-21 Thread Gary L. Wade
trying to be reformatted but in a way the back end didn't like it, so I turned off JavaScript while filling it in and then submitted it. If things still don't work, try emailing d...@apple.com and explain this issue and your real issue. -- Gary L. Wade (Sent from my iPhone) http

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread Gary L. Wade
devices, especially simulators and AirPlay similar to how the old DVD anti-copy-protection thing worked. -- Gary L. Wade http://www.garywade.com/ On 2/8/2014 9:56 AM, Kyle Sluder k...@ksluder.com wrote: On Feb 8, 2014, at 5:37 AM, David Delmonte ddelmo...@mac.com wrote: I realized I could do

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?

2014-02-08 Thread Gary L. Wade
and no hint text; maybe a tie-in? It's all academic for us; this needs to be addressed by Apple, so file your Radar you've been threatening to do, and maybe it'll make the next upgrade. -- Gary L. Wade http://www.garywade.com/ On 2/8/2014 10:10 AM, Kyle Sluder k...@ksluder.com wrote: On Feb 8, 2014

Re: libcrypto linking problem in Leopard

2014-01-06 Thread Gary L. Wade
that were in those libraries and call the OS X-explicit frameworks. If you want greater context, there are lots of other discussions on SO and elsewhere. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Jan 6, 2014, at 5:41 AM, Appa Rao Mulpuri appar...@ivycomptech.com wrote

Re: Fast hash of NSData?

2013-11-30 Thread Gary L. Wade
if appropriate. FYI, I've worked on a few backup and sync apps/processes and am pretty comfortable with file system bottlenecks both local and remote. -- Gary L. Wade http://www.garywade.com/ On 11/30/2013 2:47 AM, Graham Cox graham@bigpond.com wrote: It¹s also likely to be slow in itself

Re: Fast hash of NSData?

2013-11-29 Thread Gary L. Wade
to more quickly ascertain equality. Hashes for large file equality are a whole lot more necessary when the latency of file access is orders of magnitude larger than local file access (consider across-network full-copying of files, something backup and sync products want to be fast at). -- Gary L

Re: Mavericks Printing and inverted NSScrollView NSClipView NSTableView presentation

2013-10-27 Thread Gary L. Wade
if it's really Apple's bug. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ On Oct 27, 2013, at 3:49 PM, John Bishop j...@mulligansoftware.com wrote: We've filed a bug report (15328543), but this is such a killer for our customers we need to find out what's going on and offer

<    1   2   3   4   >