Re: debugging AutoLayout exception with no build errors

2015-11-06 Thread 2551
> On 6 Nov 2015, at 01:31, Conrad Shultz wrote: > You can attach LLDB to a running application (or set it to attach-on-launch) > and set breakpoints therein without needing to actually build. Thanks, that’s something I’ll have to learn how to do down the road… :-)

Re: debugging AutoLayout exception with no build errors

2015-11-05 Thread 2551
No takers? > On 4 Nov 2015, at 22:19, 2551 <2551p...@gmail.com> wrote: > > I have an OSX app built on 10.11.1, deployment target 10.9. The app builds > and runs without any AutoLayout issues or warnings from Xcode. I have > ambiguities turned on. > > The problem i

Re: debugging AutoLayout exception with no build errors

2015-11-05 Thread 2551
> On 5 Nov 2015, at 20:33, Ken Thomases wrote: > It's trying to log the problem, but getting an exception while composing a > description string for one of the constraints. Ahh, right. That’s what the ‘Unable to create description’ bit means. Thanks. > You've truncated

debugging AutoLayout exception with no build errors

2015-11-04 Thread 2551
I have an OSX app built on 10.11.1, deployment target 10.9. The app builds and runs without any AutoLayout issues or warnings from Xcode. I have ambiguities turned on. The problem is when I try to run the app on 10.9. Although the app will run without fatally crashing, one of its main windows

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-30 Thread 2551
I’m on both of the affected lists, but so far have not been treated to Olivia’s favour (meanwhile my inbox is bulging with mail complaining about her, and I apologise in advance to contributing to that count, effectively spamming myself… :(. On 30 Jul 2015, at 20:45, Shane Stanley

Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
On 30 Jul 2015, at 23:19, Jens Alfke j...@mooseyard.com wrote: You’re confusing -substringWithRange: with -rangeOfSubstring:. The documentation and warning you cite come from the former, but you’re talking about the latter. -rangeOfString: invokes, rangeOfString: options:, which invokes

problem with rangeOfString debugger warning

2015-07-30 Thread 2551
I commonly use code like this to test if a string contains a substring NSString *someString = @“This thing has an item.price and a discount.price”; NSRange range = [someString rangeOfString “cost”]; if (range.location !=NSNotFound) { //do something } else { //don’t do it } In

Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
On 30 Jul 2015, at 15:11, 2551 2551p...@gmail.com wrote: NSRange range = [someString rangeOfString “cost”]; Just to head off any potential red herrings, that missing “@“ typo in the pseudocode is not in my actual code. Best Phil ___ Cocoa

Re: problem with rangeOfString debugger warning

2015-07-30 Thread 2551
Cancel that question. Found the error between the chair and keyboard (someString was depending on another function which itself was returning null and which I’d forgotten to bullet-proof). Apologies for the noise. Best Phil On 30 Jul 2015, at 15:16, 2551 2551p...@gmail.com wrote

NSTableView - kill the blue (Obj-C)

2015-07-26 Thread 2551
I’ve been struggling with NSTableView for the last two days. All I want to do is ensure the alternative “gray” highlight is used on a selection consistently instead of the heavy blue. Here’s my code: -(void) killBlue { NSInteger selectedRow = [_tableView selectedRow]; if ([_tableView

Re: NSTableView - kill the blue (Obj-C)

2015-07-26 Thread 2551
On 26 Jul 2015, at 22:17, Ken Thomases k...@codeweavers.com wrote: The right approach is to subclass NSTableRowView. It's not hard. Why do you resist it? OK, got it. Thanks for the pointers. Much appreciated! Best Phil ___ Cocoa-dev

Distinguishing home and commercial use

2015-07-24 Thread 2551
Friends, Platform: OSX Distribution: Outside of App Store Aim: I want to distinguish “ordinary users” of my app from “commercial users”, where the latter might be defined as anyone installing my app on 5 or 10 (pick a number) different macs. Rationale: I want to offer my app for free to

Re: Distinguishing home and commercial use

2015-07-24 Thread 2551
On 24 Jul 2015, at 21:13, Bill Cheeseman wjcheese...@gmail.com wrote: I find that the most important and effective use of the honor system is with big companies.” My commercial users are more likely to be small independent s/w / IT consultants, or educational institutions (i.e sysadmins

Re: good intro book about cocoa dev

2015-07-22 Thread 2551
On 22 Jul 2015, at 10:35, Richard Charles rcharles...@gmail.com wrote: I second that. Hillegass is great. In the beginning of the book he will tell you what the prerequisites are. Make sure you meet the prerequisites. I asked this same question (not here, but in many other places and of

Re: I am reluctant to file any more bugs until those already reported are fixed

2015-07-15 Thread 2551
On 15 Jul 2015, at 18:38, Alex Zavatone z...@mac.com wrote: Based on the result of effort put in to reporting bugs and amount fixed, there is no way I can justify reporting bugs even if I had the time to afford to do it. Well it depends. If we’re talking bug reporting to insert name of

Snow Leopard 10a432 DMG

2015-07-14 Thread 2551
I need to support users still on Snow Leopard (I’m on Xcode 6.4 / Yosemite 10.10.4). I’m building using the latest SDK but deployment target is 10.6. As others have noted in the past, the compiler will not warn of any code incompatibilities, so I’m looking to install SL on an external

Re: Edit menu localisation, default application menu

2015-07-11 Thread 2551
On 11 Jul 2015, at 16:03, Uli Kusterer witness.of.teacht...@gmx.net wrote: I can't find anything since they redid the web site. Sorry, OT, but boy is that frustrating. What is it with Apple and their websites (cf the mess they made of Apple Support Communities with the overhaul a year or

Re: Anyone recommend Dash?

2015-07-09 Thread 2551
I use it everyday and consider it excellent value for the $20 or so I paid for it. If you're only using objective-C / Swift and you're always on line, you might not get as much mileage. However, if you're also using a variety of other language and IDES/Editors, it's a great one-stop

Re: licence key validation method

2015-01-13 Thread 2551
On 13 Jan 2015, at 13:51, Jens Alfke j...@mooseyard.com wrote: The license mechanism serves as a reminder to new users that their demo has expired, or that the copy they borrowed from their roommate hasn't been paid for yet. Precisely. I haven't commented on this

Re: licence key validation method

2015-01-13 Thread 2551
On 13 Jan 2015, at 07:42, João Varela joaocvar...@gmail.com wrote: all I’m saying be careful how you expose your licensing code if you are going to use objective C. I take the opposite POV. If someone's going to start messing around with otool and class-dump on my app, I know they're not

Re: licence key validation method

2015-01-12 Thread 2551
On 12 Jan 2015, at 03:59, Charles Srstka cocoa...@charlessoft.com wrote: After all, you’re going to want some sort of automatic system for generating license codes for your users, Actually, no. As I said, the licence codes are being generated via FastSpring (and that's OpenSSL). All I

Re: licence key validation method

2015-01-12 Thread 2551
So my guess would be that you have somewhere on the Fastspring site asked them to generate a CocoaFob key. Correct. What that string of stuff most likely is is .. some information you have supplied, like a user name or serial number or whatever fields you told FastSpring you want in

Re: licence key validation method

2015-01-12 Thread 2551
On 12 Jan 2015, at 20:38, Bill Cheeseman wjcheese...@gmail.com wrote: I've used eSellerate for many years. They provide a very well-documented API for generating and validating registration keys in a variety of formats for purchase i Thanks for that, Bill. I'm not in any way

Re: licence key validation method

2015-01-12 Thread 2551
On 12 Jan 2015, at 18:44, Roland King r...@rols.org wrote: Part of the problem, at least for me, is I haven’t figured out yet what you actually have that you’re trying to verify. Is it a string, a file Thanks, Roland. It's a string that looks like this:

Re: licence key validation method

2015-01-12 Thread 2551
On 12 Jan 2015, at 18:39, Uli Kusterer witness.of.teacht...@gmx.net wrote: Didn't FastSpring have an SDK that you just drop into your app to validate their licenses? That's actually what I expected when I signed up, but it doesn't appear to be the case, unless I've overlooked something

Re: licence key validation method

2015-01-12 Thread 2551
On 13 Jan 2015, at 00:34, Gleb Dolgich gleb...@gmail.com wrote: You can throw it at me as well, what with me being the author of CocoaFob Gleb, I appreciate your input. I found the no_openssl branch and downloaded it, but I'm still unsure what to do with it. On the CocoaFob page it says

Re: licence key validation method

2015-01-12 Thread 2551
On 13 Jan 2015, at 11:05, 2551 2551p...@gmail.com wrote: Presumably, I only need the stuff in the objc folder, do I import all of those files? And if so, what headers do I import into the class that contains my registration view? What method/methods do I connect the Enter button

Re: licence key validation method

2015-01-12 Thread 2551
On 13 Jan 2015, at 11:52, Gleb Dolgich gleb...@gmail.com wrote: You don't need cocoafob.m as it's test code. CFobLicVerifier.{h|m} and CFobError.{h|m} should be it as all the necessary decoding in the no_openssl branch is handled using SecurityFramework. The function codecheck() in

Re: licence key validation method

2015-01-12 Thread 2551
On 13 Jan 2015, at 11:23, 2551 2551p...@gmail.com wrote: Is that all I need to do? I see I need CFobError, too. Is just this stuff going to be enough to get this to work? CFobError.h √ CFobError.m √ CFobLicVerifier.h

Re: licence key validation method

2015-01-10 Thread 2551
Thanks for the overview Uli, and the pointer towards Security.framework. I'm working my way through the docs, but there's a lot that doesn't seem relevant to my task. Most of the rest in your outline I've got. However, it's these specific parts I'm struggling with and which prompted my

Re: [SOLVED] building an AppleScript editor app

2014-12-07 Thread 2551
-[OSAScript executeAndReturnDisplayValue:error:] Bingo! THAT's what I was looking for! In my current project (I have several derivatives of the editor I'm building, which is another thing that keeps me playing with it), I'd switched to NSAppleScript and forgotten that OSAScript has one or

set maximum file size

2014-10-08 Thread 2551
Hi folks I have an app which needs to save some of its data into a log file. I have the method set up already for creating and appending the log file. However, I'd like to limit the file size and initiate a file turn over when it reaches a certain size. What is the best way to accomplish this?

Re: set maximum file size

2014-10-08 Thread 2551
On 8 Oct 2014, at 21:08, Alex Zavatone z...@mac.com wrote: Why not check the file size before writing? Ah, yes, like a kid who picks up the binoculars fat-end first, I was looking at things the wrong way around (how to limit the size instead of getting the size and doing something with

Re: NSLinguisticTagger

2014-09-24 Thread 2551
That's correct behaviour. There is no such word as เหลือง in Thai. It's a particle that always exists as an adjunct to something else. Although สี is a word on its own, เหลือง is not. Even when Thais speakers say something like รถเหลือง, this is colloquial speech. Technically, it's รถสีเหลือง.

Re: return string that is the difference between two other strings

2014-09-21 Thread 2551
On 21 Sep 2014, at 13:38, Diederik Meijer | Ten Horses diede...@tenhorses.com wrote: Meaning I would compare words and their index in an array of words created from the two strings. Thanks, Diederik. That's exactly the approach I took by using NSMutableArray's -removeObject.

Re: return string that is the difference between two other strings

2014-09-21 Thread 2551
On 21 Sep 2014, at 13:03, Kyle Sluder k...@ksluder.com wrote: No, it is nowhere near a common operation to perform on strings. I stand corrected on that front, then (apparently...). Doesn't change the fact that I need to know how to do it, unless someone is willing to point me in the

Re: return string that is the difference between two other strings

2014-09-21 Thread 2551
On 21 Sep 2014, at 13:45, Allan Odgaard lists+cocoa-...@simplit.com wrote: One solution is the UNIX diff command x-man-page://1/diff which, as Jens previously mentioned, works on lines and is commonly used by version control systems and programmers. You can call out to this command from Cocoa

return string that is the difference between two other strings

2014-09-20 Thread 2551
I've searched high and low (or roundabouts in circles) for a built in method that will return the difference between two strings as a string. I hacked up this solution below, but it feels cludgy and isn't very robust (punctuation will mess it up a little); worse, I can't help feeling I must be

Re: return string that is the difference between two other strings

2014-09-20 Thread 2551
Really? OK. On 21 Sep 2014, at 00:05, SevenBits sevenbitst...@gmail.com wrote: On Sep 20, 2014, at 1:01 PM, 2551 2551p...@gmail.com wrote: I've searched high and low (or roundabouts in circles) for a built in method that will return the difference between two strings as a string. I

Re: return string that is the difference between two other strings

2014-09-20 Thread 2551
Definition: On 21 Sep 2014, at 00:53, Jens Alfke j...@mooseyard.com wrote: a set of the words that are in the second string but not in the first That's close. Any words that are in one string but not in the other. Yup, that is what I'm after. I'll pass if people start asking me what I mean

Re: return string that is the difference between two other strings

2014-09-20 Thread 2551
On 21 Sep 2014, at 02:56, Ludovic Nicolle lnico...@chezludo.com wrote: Once we (and maybe yourself? :p ) know what you truly want OK, I should have presented the problem, rather than a solution that needed improving. If you have two text files written out at different times, how do you guys

Re: return string that is the difference between two other strings

2014-09-20 Thread 2551
On 21 Sep 2014, at 10:58, Jens Alfke j...@mooseyard.com wrote: What I'd want is something that shows the combined text with the deleted words crossed out and the new words highlighted. Thanks, Jens. You've hit the nail on the head. That's exactly what I want to achieve. I said order didn't

Re: What is the modern Cocoa way to send an Apple Event to yourself?

2014-08-22 Thread 2551
On 22 Aug 2014, at 12:24, Daryle Walker dary...@mac.com wrote: Oh, is there a non-retired list of the basic Apple Events and their required and optional parameters? Non-retired? Hmm; tricky. There's Apple Event Manager Reference and Apple Events Programming Guide, both 2007, both marked as

Re: Storing a value to access across app launches and even re-install

2014-08-19 Thread 2551
It's impossible to store something on a users computer and make it invulnerable from the user deleting it. The best you can do is hide it, but there are various ethical hoops to jump through with that one. Notwithstanding better advice from other list members, about best advice i've seen on

rotate UI subview (CFAffline Transform)

2014-07-18 Thread 2551
I have a problem which I can't find anyone else asking after hours of searches through stackexchange and the like. In a UIView, I'm rotating a subview with a Gesture recognizer that calls this selector: - (IBAction)rotateShape:(UIRotationGestureRecognizer *)gesture {

[Solved] rotate UI subview (CFAffline Transform)

2014-07-18 Thread 2551
Thanks Steve and Cody You were both correct that what was happening was that the subsequent translation was cancelling the rotation. All I needed to do was store the rotation as a CGFloat on the object and then call the rotation again after the move. Thanks again. signature.asc

can I safely ignore Error: CGAffineTransformInvert: singular matrix?

2014-07-15 Thread 2551
I added a bannerView to a custom UI detailController view, wired it up to a property in the class's .h file then added self.canDisplayBannerAds = YES;j to my implementation file. The banner works fine, but I'm getting several instances of Error: CGAffineTransformInvert: singular matrix in

Re: Notification Center

2014-06-08 Thread 2551
shouldPresentNotification:(NSUserNotification *)notification{ return YES; } That's it. Notifications should get delivered regardless of whether your app is frontmost or not. On 28 May 2014, at 00:40, Kyle Sluder k...@ksluder.com wrote: On May 27, 2014, at 1:20 PM, 2551 2551p...@gmail.com wrote

Notification Center

2014-05-27 Thread 2551
I'm officially flumoxed. My app has a number of methods that send notifications to Notifications Center. All of them work, except for a pair in one method (there's a success/fail pair attached to an if/else clause in each case). The code is identical (they're all derived from the same code

Re: string literals and performance

2014-05-25 Thread 2551
On 25 May 2014, at 15:11, Gary L. Wade garyw...@desisoftsystems.com wrote: The performance benefit for choosing the first style over the second style comes in if you need to debug your app or change the contents of a string literal.SNIP That's what I understood from the stackexchange

string literals and performance

2014-05-24 Thread 2551
Are there any performance implications that would suggest preferring one or the other of these different styles? NSString *s = @sing me a song; [myClass aMethod: s]; and [myClass aMethod: @sing me a song]; I have a lot of the first kind in my code, and I'm thinking of simplifying it by

Re: get set firewall status

2014-05-20 Thread 2551
On 20 May 2014, at 19:48, Edward Marczak marc...@gmail.com wrote: This is the firewall represented in system_profiler output, so, check out the man page for (or use otool on) afctl. Thanks for the feedback everyone. I've done an exhaustive search, but there's nothing called 'afctl' on my

get set firewall status

2014-05-16 Thread 2551
Is there a Cocoa way to get get and set the status of the built-in OS X Firewall? At the moment I'm using an NSTask and extracting the relevant part of the string from system_profiler SPFirewallDataType to get the status, but it's slow. Is there a better way? TIA Phil signature.asc

new iWorks-style document View

2014-05-08 Thread 2551
I'm seeing some 3rd party apps appearing now that use a similar interface as the new Pages 5 (Numbers, Keynote). Both the style of the toolbar and the way the split views / panels work are visually very different from pre-Mavericks. Is there any apple documentation, WWDC video or sample code

Re: Help with Help

2014-04-30 Thread 2551
On 30 Apr 2014, at 00:52, Gordon Apple g...@ed4u.com wrote: We would like to get a recommendation on the best way to generate a help system for a fairly complex application. You might also try techwrl-list, they're the experts on help systems:

help with logic error

2013-12-12 Thread 2551
Hi folks I need some help with a logic error the Static Analyzer is throwing up. I didn’t write this code (in fact, its a piece of Apple sample code I’m resuing in my project), and I’m not quite sure how to correct it. It goes like this, where the numbers [1], [2], [3], [4] represent the end

Re: help with logic error

2013-12-12 Thread 2551
On 12 Dec 2013, at 18:56, Mike Abdullah mabdul...@karelia.com wrote: If orientation happens to have a value *other* than NSVerticalRuler or NSHorizontalRuler, you’ll reach this point with borderLineRect containing garbage since it’s never been filled in properly. This is what the analyser

Re: Threaded drawing

2013-12-12 Thread 2551
...@mooseyard.com wrote: On Dec 11, 2013, at 4:39 AM, 2551 2551p...@gmail.com wrote: It’s certainly seemed the case to me that I would have probably spent less time just writing my own code from scratch than I spend trying to figure out how half the methods I’m trying to use should be implemented

Re: Threaded drawing

2013-12-11 Thread 2551
On 11 Dec 2013, at 17:20, Graham Cox graham@bigpond.com wrote: The documentation is sparse though SNIP...That’s my somewhat limited understanding, not particularly well-informed by the docs, but appears to work by experimentation. The commonality of this experience makes me wonder

NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
I’m confused. If you select a NSTextView item in IB, then examine the Attributes Inspector, you’re presented with various options for setting text attributes, such as the font, size and color. In my clumsy hands, none of these work. The text entry always defaults to Helvetica 12.0 in standard

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
Thanks Graham and Mark. Candle out, torch on (with fresh batteries). :) P On 12 Nov 2013, at 23:25, Graham Cox graham@bigpond.com wrote: On 12 Nov 2013, at 4:19 pm, 2551 2551p...@gmail.com wrote: I’m confused. If you select a NSTextView item in IB, then examine the Attributes

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
On 12 Nov 2013, at 23:25, Graham Cox graham@bigpond.com wrote: This sounds like the smart quote substitution feature, which has nothing to do with the font or other text attributes. Thanks, understood. However, I probably didn’t make it clear that I actually need to do both. i.e.,

Re: NSTextView - stopping conversion of quotation marks

2013-11-12 Thread 2551
On 12 Nov 2013, at 23:51, 2551 2551p...@gmail.com wrote: Still not sure how to go about doing the latter Scratch that. Light bulb went on. Got it! Thanks muchly. I’ve put this one to bed and can now move on to the next probl…ahem…*stage* of development. :p

Re: toolbar icons and images

2013-11-10 Thread 2551
On 10 Nov 2013, at 14:20, 2551 2551p...@gmail.com wrote: I can’t find any clear specifications in the documentation as to what exactly the ideal image size and resolution should be. I finally stumbled upon: 32x32px @72dpi as giving consistent results

toolbar icons and images

2013-11-09 Thread 2551
I’ve spent the entire morning trying to import my own custom images for toolbar icons, with varying success. While they tend to look OK in both the ImageAssets interface and in the xib file, when I build and run the app they sometimes render correctly but (more often) sometimes do not. I’ve

Apple Sample Code WWDC 2010 session 114

2013-11-08 Thread 2551
Hi folks I’m desperately trying to track down some Apple sample code that was featured at the WWDC 2010, related to session 114, entitle d ‘Advanced Cocoa Text Tips and Tricks. The video is available on Apple’s Developer forum and iTunes University, but the sample project used in the video is

Re: Apple Sample Code WWDC 2010 session 114

2013-11-08 Thread 2551
ten minutes to scan the code and see where I’d been going wrong. You folks are awesome! :)) Thanks again to all who responded. :) Best Phil On 5 Nov 2013, at 19:40, 2551 2551p...@gmail.com wrote: Hi folks I’m desperately trying to track down some Apple sample code that was featured

Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-08 Thread 2551
For all those interested: https://www.dropbox.com/s/nqdsguiap4qs9ec/WWDC_2010_114.zip Best Phil http://applehelpwriter.com On 9 Nov 2013, at 01:54, Brian Clark ba-cl...@comcast.net wrote: On Nov 8, 2013, at 11:18 AM, 2551 2551p...@gmail.com wrote: I have now been fortunate to receive