> 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… :-)
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
-[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
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?
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
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 รถสีเหลือง.
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.
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
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
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
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
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
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
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
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
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
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 {
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
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
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
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
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
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
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
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
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
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:
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
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
...@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
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
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
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
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.,
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
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
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
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
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
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
68 matches
Mail list logo