Re: How do decipher an exception in the log file

2023-07-18 Thread Ben Kennedy via Cocoa-dev
> On Jul 18, 2023, at 9:28 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > 2023-07-17 13:13:23.657278+0200 0xff744Error 0x1144e1 > 2670 0legacyScreenSaver: [com.apple.ScreenSaver:Modules] > -[LegacyExtensionManager processExtensionRequest:replyInfo:]_block_invoke

Re: How to convert path through container into standard form?

2022-12-11 Thread Ben Kennedy via Cocoa-dev
> On 11 Dec 2022, at 12:51 pm, Mike Abdullah via Cocoa-dev > wrote: > > Have you tried -URLByResolvingSymlinksInPath? As far as I’m aware, the > Pictures entry inside your container is a symlink to the real thing, so > assuming you have appropriate entitlements, should be possible to resolve

Re: Indexing broken for one project

2022-02-13 Thread Ben Kennedy via Cocoa-dev
On 13 Feb 2022, at 1:07 pm, Gabriel Zachmann via Cocoa-dev wrote: > Just now, I have tried a few other things. > I deleted some folders in ~/Library/Deverlopers (caches, log files, devices). > Interestingly, there is no ~/Library/Deverloper/Xcode/DerivedData! (which > should contain the indexin

Re: Accessing a property of a view via its controller doesn't work

2021-09-06 Thread Ben Kennedy via Cocoa-dev
> On Sep 6, 2021, at 2:14 PM, Gabriel Zachmann via Cocoa-dev > wrote: > > I had assigned the window to an ivar window_ in viewWillMoveToWindow: > > - (void) viewWillMoveToWindow: (NSWindow *) newWindow > { >window_ = newWindow; I asked earlier, but I’ll ask again: why are you doing this?

Re: Accessing a property of a view via its controller doesn't work

2021-09-04 Thread Ben Kennedy via Cocoa-dev
> On Sep 4, 2021, at 10:27 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > I access the window of a view by two different ways, in the controller and > in the view, resp., and in the controller, I always get a nil pointer. > > In my app, I have a subclass of NSView, MyView, declared like thi

Re: How to distinguish between different MS Teams statuses

2021-07-22 Thread Ben Kennedy via Cocoa-dev
> On 22 Jul 2021, at 10:45 am, Gabriel Zachmann via Cocoa-dev > wrote: > > is it possible to determine - in my own app - whether or not there is an MS > Teams video call taking place at the moment? The only correct answer to that depends on whether Microsoft Teams provides API that vends su

Re: Distributing Mac App to Registered Devices

2021-06-23 Thread Ben Kennedy via Cocoa-dev
> On 23 Jun 2021, at 12:22 pm, Richard Charles via Cocoa-dev > wrote: > > Yes, that is what I do now. However when upgrading to Xcode 12 it wants to > change the debug and release configuration to use development signing. > Notarized builds are reserved for archiving. Just saying that Apple

Re: MacOS: nonmodal NSAlert panel

2021-05-12 Thread Ben Kennedy via Cocoa-dev
> On 12 May 2021, at 11:17 am, Carl Hoefs via Cocoa-dev > wrote: > > I'd like to present an informational alert for n seconds then dismiss it > without user interaction. But I don't see any way to dismiss, terminate, > cancel, invalidate, etc. an NSAlert object. I recently did that exact th

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-09 Thread Ben Kennedy via Cocoa-dev
> On 9 May 2021, at 2:29 pm, Alex Zavatone wrote: > >> It sounds like you might need to rethink your data model a bit. > > That’s what I’m trying to do! : D I meant the internal data model, as in how your program represents the data in memory and in respect of what API it provides to its cli

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-08 Thread Ben Kennedy via Cocoa-dev
> On 8 May 2021, at 5:32 pm, Alex Zavatone wrote: > > Well, what I’m not sure about are how to store the results internally. Do I > declare both an NSArray and an NSDictionary and check to see which one ended > up getting the proper result? Call -[propertyListWithData:options:format:error:],

Re: How do you handle reading a plist if it may be an array or a dictionary?

2021-05-08 Thread Ben Kennedy via Cocoa-dev
Sounds like NSPropertyListSerialization is what you’re after. https://developer.apple.com/documentation/foundation/nspropertylistserialization b Sent from my iPhone > On May 8, 2021, at 5:12 PM, Alex Zavatone via Cocoa-dev > wrote: > > I’m reading a configuration plist like so. > > NSFileM

Re: /Library/Application Support off limits?

2021-04-14 Thread Ben Kennedy via Cocoa-dev
> On 14 Apr 2021, at 1:14 am, Davidap via Cocoa-dev > wrote: > > Apple say: > > [...] For example, if your app is named MyApp and has the bundle identifier > com.example.MyApp, you would put your app’s user-specific data files and > resources in the ~/Library/Application Support/com.example

Re: Command line builds and tee(1) not writing file

2021-03-09 Thread Ben Kennedy via Cocoa-dev
> On 8 Mar 2021, at 3:36 pm, Jeffrey Walton via Cocoa-dev > wrote: > > Tee(1) is not writing the file for him, and I can confirm the > behavior. Here's how it is being used: > >./cryptest-ios.sh 2>&1 | tee cryptest-ios.txt Hey Jeff, I recall encountering a similar problem a few months ago

Re: Programmatically created NSButton is drawn in the wrong position.

2020-12-14 Thread Ben Kennedy via Cocoa-dev
> On 14 Dec 2020, at 5:39 pm, Eyal Redler via Cocoa-dev > wrote: > > button = [[NSButton alloc] initWithFrame:NSMakeRect(0, 0, 0, 0)]; > [button setTranslatesAutoresizingMaskIntoConstraints:NO]; > [button setBezelStyle:NSRoundedBezelStyle]; > [button setTitle:buttonTitle]; > [button sizeToFit]

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
By the way, some of what you said doesn't seem to quite make sense: > The behaviour below is what is simply not happening. > > If you > invoke this method with a nil nib name, then this class' -loadView > method will attempt to load a NIB whose > name is the same as your view controlle

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
> On 22 Nov 2020, at 12:45 pm, Alex Zavatone via Cocoa-dev > wrote: > > I’ve found a bug in Swift’s loadView for UIViewController on iOS that I’d > like to report. Swift.org tells us to use https://bugreport.apple.com which > returns “bugreport.apple.com’s server IP address could not be fou

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 7:45 pm, Michael Hall via Cocoa-dev > wrote: > > Something else I’m curious about is doesn’t this somehow invalidate any > application signing that’s been done? Code signing happens last, even if you put your shell script phase at the very bottom. (Observe the build outp

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 11:47 am, Gabriel Zachmann via Cocoa-dev > wrote: > > I tried this: > > plutil -replace CFBundleVersion -string '$(CURRENT_PROJECT_VERSION) 111' > qq.plist > > which works -- but what I need to do is something like this: > > plutil -replace CFBundleVersion -string "\$

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
> On 19 Aug 2020, at 9:07 am, Gabriel Zachmann via Cocoa-dev > wrote: > > The plist file has, additionally to all the default stuff, the key > CFBuildNumber (with a value that I increment automatically). > > In Xcode, I tried to change "Bundle version" to a value like > > $(CURRENT_PROJEC

Re: Funny issue: one line in GUI is grey-ish

2020-08-09 Thread Ben Kennedy via Cocoa-dev
> On 9 Aug 2020, at 5:58 am, Gabriel Zachmann via Cocoa-dev > wrote: > > I have a simple app (status bar item) with a simple GUI. > The funny thing is that one text line in the GUI is grey-ish, > but NOT in the XIB in XCode ... and I can't determine why that is or how to > correct it. Interes

Re: Thoughts on Cocoa source code

2019-10-09 Thread Ben Kennedy via Cocoa-dev
> On 09 Oct 2019, at 1:19 pm, Turtle Creek Software via Cocoa-dev > wrote: > > In fact, why isn't Cocoa open source? Apple open-sources Swift and the > Darwin kernel. Surely the GUI can't be any riskier to expose to developers? This is a business strategy question, not a Cocoa development ques

Re: ARC

2019-08-23 Thread Ben Kennedy via Cocoa-dev
> On 23 Aug 2019, at 2:17 pm, Casey McDermott via Cocoa-dev > wrote: > > We allocate the controller in our app delegate class. It's a member but > apparently that is not a > strong enough reference, so the controller is released at the end of the > scope. What is best practice to hold a stron

Re: xCode troubles

2019-05-14 Thread Ben Kennedy
The phenomenon you're describing is a long-standing bug in Xcode that Apple does not seem interested in fixing. I finally filed it last November as rdar://46203599. It was closed as a duplicate of rdar://9706748 (!). (That's actually rather alarming, because it's 36.5 million numbers earlier; j

Re: Category errata in Objective-C

2019-03-29 Thread Ben Kennedy
> On 29 Mar 2019, at 2:51 pm, Alex Zavatone wrote: > > In all the docs on categories, I seem to have missed what the term for the > text within the parens of a category declaration is called and what function > it serves. It's the category name. NSObject(Foo) represents "the Foo category on NS

Re: NSAlert

2018-09-10 Thread Ben Kennedy
> On 10 Sep 2018, at 11:06 am, Richard Charles wrote: > > On my development machine running 10.12.6 pressing the spacebar will dismiss > a simple NSAlert. This is because in System Preferences > Keyboard > > Shortcuts > Full Keyboard Access > All Controls was selected. (For some > reason it to

Re: Can I generate a segue this way?

2018-06-06 Thread Ben Kennedy
On Jun 6, 2018, at 11:14 PM, Rick Aurbach wrote: > Working with a storyboard, I add a Tap Gesture Recognizer, connect it to the > label, and connect the segue to the gesture recognizer. I think I've set > everything up correctly, but tapping on the label does not trigger the segue. You might n

Re: Best strategy to update view controllers in navigation stack after users edit data

2018-04-20 Thread Ben Kennedy
> On Apr 20, 2018, at 1:15 AM, Glen Huang wrote: > > I have an app where user can edit data and save to my server. I wonder what’s > the best way to update affected view controllers in the navigation stack? If I were to give a literal answer to your question, I'd suggest a callback method (eit

Re: NSString equivalent of CFSTR macro?

2017-12-04 Thread Ben Kennedy
On Dec 4, 2017, at 2:53 PM, Rick Mann wrote: > I tried that. It doesn't work. > > MCP.m:262:54: Unexpected '@' in program Weird. I just tried it here, using your exact example, and it worked fine under Xcode 9.2. (I slapped it into my iOS app's application:didFinishLaunchingWithOptions: as a

Re: NSString equivalent of CFSTR macro?

2017-12-04 Thread Ben Kennedy
> On Dec 4, 2017, at 2:47 PM, Rick Mann wrote: > > #define NSSTR(s) (@ ## s) <-- magic; this > doesn't work > #define kSomeCStringConstant "foo" > ... > NSSTR(kSomeCStringConstant) You're close. The preprocessor is removing the quotation marks, brea

Re: High Sierra Firmware Update

2017-09-26 Thread Ben Kennedy
> On Sep 26, 2017, at 7:25 AM, Richard Charles wrote: > > Question: Has anyone successfully upgraded the firmware an older Mac Pro when > installing High Sierra? I upgraded my MacPro5,1 without incident. However, the subsequent installation progress just hung the computer when the progress ba

Re: strange behaviour of hasPrefix

2017-05-03 Thread Ben Kennedy
> On 03 May 2017, at 8:25 am, Gerriet M. Denkmann wrote: > > NSString *test2 = [ @"/some/path" stringByAppendingPathComponent: pintu > ].lastPathComponent; > [ self printTestString: test2 ]; > // prints: length 2 0x2d 0xe3a “-ฺ” BAD: has no prefix "-" NSPathStore2 ← > NSString > Wh

Re: needsDisplay and subviews

2017-03-08 Thread Ben Kennedy
> On 08 Mar 2017, at 8:46 am, Jeremy Hughes wrote: > > If needsDisplay is set to true for an NSView, does that also cause subviews > to be redrawn? Admittedly I've been mostly doing iOS development for the last several years and barely any Mac lately, but, according to the current docs: need

Re: UTI and/or bundle-IDs with small letters

2017-03-02 Thread Ben Kennedy
> On 02 Mar 2017, at 11:38 am, Daryle Walker wrote: > > Turns out that the system gives me the UTI in all small letters, so my > (Swift) “switch” fails and my no-matching-type code is executed. I know I > could switch my bundle ID to all small letters, but I want to know first if > this is do

Re: Seeing nil passed to isEqual:, despite non-null declaration

2017-01-13 Thread Ben Kennedy
> On 13 Jan 2017, at 10:34 am, Quincey Morris > wrote: > > Did I miss a change in clang that made the default “not nullable”?? I read > the above declaration as meaning that the nullability is *unspecified*, which > implies that nil is allowed. NSObject.h (from which Sean was quoting) begins

Re: Does setFormatter() retain?

2016-08-24 Thread Ben Kennedy
> On 24 Aug 2016, at 1:24 pm, Andreas Falkenhahn wrote: > > If it retains, I could just do the following: > >[textField setFormatter:formatter]; >[formatter release]; > > And I wouldn't have to worry about "formatter" any longer. If it doesn't > retain, > the above isn't possible. W

Re: Does setFormatter() retain?

2016-08-24 Thread Ben Kennedy
> On 24 Aug 2016, at 1:04 pm, Andreas Falkenhahn wrote: > > I have read Apple's memory management guide on retain/release and > I think I've basically got it, but there's just one thing that > I'm not confident about and that is "setXXX" methods which accept an > NSObject parameter and I don't k

Re: Thoughts on autolayout

2016-04-21 Thread Ben Kennedy
> On 21 Apr 2016, at 10:47 am, Ben Kennedy wrote: > > One is then left to hunt around in the damn list on the right in order to > find it and then delete it *again* from there in order to actually eviscerate > it. Oops; I meant the list on the left (the hierarchal inspec

Re: Thoughts on autolayout

2016-04-21 Thread Ben Kennedy
> On 21 Apr 2016, at 12:12 am, Quincey Morris > wrote: > 1. Part of the problem is branding. “Autolayout” actually refers to the > runtime layout engine, and what happens automatically is the runtime > relocation of UI elements according to constraints. Yeah, the more descriptive term is “co

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

2016-04-19 Thread Ben Kennedy
> On 19 Apr 2016, at 11:41 am, Quincey Morris > wrote: > > The (built) precompiled header files does *not* have extension “.pch”, While a trivial detail, this does not seem to be true (at least in Xcode 7.2). We have a prefix header called "Kashoo_Prefix.pch", and if I hit cmd-shift-O and ty

Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-27 Thread Ben Kennedy
> On 27 Feb 2016, at 11:17 am, Carl Hoefs > wrote: > > Yes, that works, thanks! I just thought there might be a "preferred" way to > do it. I guess I was hoping for something like: > > [myTableView selectRowAtIndexPath:indexPath > animated:YES > scr

Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-27 Thread Ben Kennedy
> On Feb 27, 2016, at 11:01 AM, Carl Hoefs > wrote: > > The problem is that the delegate callback associated with selecting that row > doesn't occur. And indeed, I have since found that the documentation for this > method says: > > "Calling this method does not cause the delegate to receive

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

2016-02-10 Thread Ben Kennedy
> On 10 Feb 2016, at 5:00 pm, Gary L. Wade wrote: > > You've made my point. None of my friends would even bother with looking at > the certificate for his site (assuming that's his site from his email > address) and move on. At worst, they'd call me and I'd say don't go there > since I don't w

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

2016-02-10 Thread Ben Kennedy
If you actually took a look at the details, you'd see that the cert is for "ssl13.ovh.net" rather than "xenonium.com". If you visit https://ssl13.ovh.net in Safari you will see no such problem. Jean-Daniel did not expressly state that he's trying to serve anything at https://xenonium.com. -b

Re: App Transport Security exceptions App Store signed app

2016-01-26 Thread Ben Kennedy
On 26 Jan 2016, at 9:55 pm, Trygve Inda wrote: > connection failed: (null) The resource could not be loaded because the App > Transport Security policy requires the use of a secure connection. > http://www.earthdeskcloudhost02.com/mosaic/free/clouds-2048.jpg I'm no App Transport Security expert,

Re: Settings.bundle settings disappear while running

2016-01-12 Thread Ben Kennedy
Hey Eric, I've seen a problem with recent versions of the toolchain where the Settings app fails to display entries for the app's Settings.bundle (the section appears blank) after deploying new builds. At first I thought something was borked with our app, but I eventually realized that force-q

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Ben Kennedy
> On 29 Nov 2015, at 3:34 pm, Shane Stanley wrote: > >> Is this what the average user expects? > > I don't know -- I don't think many of us here really count as average users. That's why I asked the question. If I, as a 20-year Mac power user find this baffling, I can only imagine that an av

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Ben Kennedy
> On 29 Nov 2015, at 3:15 pm, Shane Stanley wrote: > > Then your claim that "there is no way to undo this damage" is incorrect. Open > an image in Preview, crop it, and quit. Open it again and you'll see the > document is marked dirty/Edited, and you can get back to the original either > by c

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Ben Kennedy
> On 29 Nov 2015, at 3:00 pm, Shane Stanley wrote: > > On 30 Nov 2015, at 9:41 AM, Ben Kennedy wrote: >> >> Re-launch Preview, and observe that there is no way to undo this damage. As >> far as I can tell, one is forced to dig in to the Time Machine BS in orde

Re: Bunch of CoreData based NSDocument questions.

2015-11-29 Thread Ben Kennedy
> On 28 Nov 2015, at 5:20 pm, Quincey Morris > wrote: > > 1. Quit. This is intended to preserve all of the current state so that it can > be restored on relaunch. The idea is that the user can quit without changing > anything that’s going on, then re-launch and be exactly where he was. [...]

Re: Strange Message when Loading NIB

2015-10-23 Thread Ben Kennedy
> On 23 Oct 2015, at 4:38 am, Dave wrote: > > Please see methods below, these are in a Window Controller, I get the message > "Could not find image named ‘Outlook’.” in the log, but I have no clue why > this is being generated it what it means, it appears to be coming from the > NIB Loading

Re: Problem with Auto Layout and drawRect

2015-09-08 Thread Ben Kennedy
> On 07 Sep 2015, at 5:02 pm, Graham Cox wrote: > > Also, NSColor is immutable so there’s little purpose to having that property > ‘copy’, it can be ‘retain’ (or ‘strong’) and it will save you a small amount > of space per instance. As Dave said in his reply, isn't this actually poor advice?

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Ben Kennedy
On 29 Jul 2015, at 8:47 am, Carl Hoefs wrote: > Ultimately, I'm simply trying to delete the asset: > [PHAssetChangeRequest deleteAssets:@[asset]]; But you don't yet HAVE an asset; you seem to only have a regular file on disk, in an application's Documents directory. Do you want to do more tha

Re: iOS 8.4: Converting a URL into a PHAsset

2015-07-29 Thread Ben Kennedy
On 28 Jul 2015, at 7:17 pm, Carl Hoefs wrote: > > I'm trying to get an NSURL into PHAsset form, but I keep coming up with null. > PHAsset fetchAssetsWithALAssetURLs: takes an NSArray of NSURLs: "An array of > NSURL objects, each an asset URL previously retrieved from an ALAsset > object." Appa

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

2015-07-10 Thread Ben Kennedy
On 10 Jul 2015, at 12:01 pm, Charles Srstka wrote: > What this means is that if you try to use an El Capitan-only feature and put > it in a block that starts with a check on floor(NSFoundationVersionNumber) or > floor(NSAppKitVersionNumber) to make sure it’s larger than the value for > 10.10.0

Re: Would you pay for a better table view?

2015-06-30 Thread Ben Kennedy
> On 30 Jun 2015, at 4:10 pm, Michael David Crawford > wrote: > > Cocoa Touch's table view works for simple things but it is painful for > anything fancy. Have you checked out UICollectionView, or as of this month, UIStackView? > Were I to write a better table view, would any of you fine folks

Re: UIPageViewController not resizing its child view controllers on rotation

2015-06-30 Thread Ben Kennedy
> On 30 Jun 2015, at 7:30 am, Devarshi Kulshreshtha > wrote: > > Though pagination control has resized properly, view of added view > controller has not resized properly. You haven't said so, but I presume that the UIPageControl belongs to your root view, and not pagesContainerViewController's

Re: [PSA] OSStatus.com -- Error code lookup

2015-06-01 Thread Ben Kennedy
On 01 Jun 2015, at 5:59 am, Uli Kusterer wrote: > It's a trick web devs use to get certain browsers to switch on UTF8 support, > IIRC. Isn't that what Accept: and Content-Type: headers are for? Oh... apparently seems like a cheap workaround for broken MSIE: http://programmers.stackexchange.co

Re: [PSA] OSStatus.com -- Error code lookup

2015-05-31 Thread Ben Kennedy
n: > https://lists.apple.com/mailman/options/cocoa-dev/ben%40zygoat.ca > > This email sent to b...@zygoat.ca -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-de

Re: Custom NSView subclass - expressing the fact that a property affects the displayed image

2015-05-22 Thread Ben Kennedy
On 22 May 2015, at 6:03 am, Jonathan Taylor wrote: > I agree that it’s extra indirection, but since performance is never going to > be an issue, I feel it’s a slight gain on tidiness and maintainability. I > agree that it’s not a big deal for one property, but when there are lots it > starts

Re: NSFontPanel swamping the responder chain (and crashing)

2015-05-22 Thread Ben Kennedy
On 21 May 2015, at 1:33 am, Graham Cox wrote: > I can’t do a ‘po self’, even just typing it in, at this point, no matter how > cunning I am at breaking at the right time. It seems as if there really isn’t > enough info to resolve ‘self’ (the message is "error: use of undeclared > identifier ‘s

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Ben Kennedy
On 04 Feb 2015, at 1:08 pm, Alex Zavatone wrote: > Thanks Kyle. The thing that scares me here is that I have no idea why this > started failing and why it stopped, so I'm afraid it could stop working at > any time without knowing why. Kyle already gave you a likely reason: you have a height c

Re: Resolving bizarre autolayout crashes.

2015-02-04 Thread Ben Kennedy
On 04 Feb 2015, at 8:26 am, Alex Zavatone wrote: > Looking at the UIScrollView to which they applied, I couldn't make heads or > tails of how the constraints listed in the console translated into the > constraints on the only UIScrollView in the XIB. I don't suppose you saved a copy of the log

Re: NSTableCellView Constraints?

2015-01-27 Thread Ben Kennedy
ize in accord. This very fact is a blessing, since it affords you control. Perhaps you have a view you'd like right-justified? Or proportionally sized? Is UIKit supposed to guess this? b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://ww

Re: Adding constrains for anonymous buttons

2015-01-25 Thread Ben Kennedy
ons[2], }; NSArray *constrants = [NSLayoutConstraint constraintsWithVisualFormat:format options:0L metrics:nil views:views]; b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-de

Re: What's up with the Cocoa Text System?

2015-01-23 Thread Ben Kennedy
Is your personal hubris about a job you were not offered 14 years ago (and tastes for interview style) somehow relevant to the other developers on this list? b Sent from my iPhone > On Jan 23, 2015, at 2:38 PM, Michael Crawford wrote: > > Cocoa Text is glacially slow compared to what it woul

Re: How do I show application-specific data on a web page?

2014-10-19 Thread Ben Kennedy
it would probably fit your bill very well. In my day job we use it for generating a variety of both simple (in-app based) and complex (user-content-driven) HTML and text files. [1] https://github.com/groue/GRMustache b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.

Re: crashing on "-[UIViewController presentViewController:animated:completion:] " on ios 8

2014-09-22 Thread Ben Kennedy
work properly if your LeftMenuViewController instance (the class which according to your trace is making the call) simply calls presentViewController on itself instead? b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ C

Re: Quickie about constraints

2014-08-18 Thread Ben Kennedy
Thank you Charles and Roland for pointing out that section of documentation, and correcting in detail my mis-advice in the first reply. Going back to what Kyle replied to me originally: >> Can't you simply set translatesAutoresizingMaskIntoConstraints = NO on the >> views in question? Then yo

Re: Quickie about constraints

2014-08-15 Thread Ben Kennedy
On 15 Aug 2014, at 8:17 pm, Graham Cox wrote: > What I really want is that part of my view hierarchy to be free to use > -setFrame:, but other parts use the autolayout constraints normally. Can't you simply set translatesAutoresizingMaskIntoConstraints = NO on the views in question? Then you

Backup eligibility (iCloud/iTunes) for iOS shared app group container

2014-08-13 Thread Ben Kennedy
Hello all, What is the persistence and backup policy for files stored in an app group shared container on iOS 8 -- that is, the directory returned by -[NSFileManager containerURLForSecurityApplicationGroupIdentifier:] ? More specifically, can I treat this directory in a similar manner as the ap

Re: iBeacons - can 100 different devices be active and seen by one device?

2014-07-18 Thread Ben Kennedy
We did almost exactly what David's describing at the NSNorth conference this spring. There were about a hundred attendees, and everyone was given an iBeacon that belonged to someone else; using the accompanying conference app, which employed a crude proximity meter (based on RSSI level), we had

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

2014-07-14 Thread Ben Kennedy
On 14 Jul 2014, at 11:30 am, Carl Hoefs wrote: >> [bigMData replaceBytesInRange:NSMakeRange(0,0) withBytes:newBytesPtr >> length:1024]; > > Wow, that's damn clever! My thinking is so clunky. It never would have > occurred to me that NSMutableData could expand (0,0) into (0,1024) out of > thin

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

2014-07-14 Thread Ben Kennedy
On 14 Jul 2014, at 11:12 am, Carl Hoefs wrote: > Okay, now if I want to insert 1024 bytes of new data at the beginning of a > populated NSMutableArray, is there a better way than this: Sure; why not just do [bigMData replaceBytesInRange:NSMakeRange(0,0) withBytes:newBytesPtr length:1024]; ...

Re: Black treatment showing when an iOS 7 only application is in the background

2014-05-27 Thread Ben Kennedy
On 27 May 2014, at 11:52 am, Alex Zavatone wrote: > But, it appears that even when using "Inferred" for view controllers' > Simulated Metrics, Inferred is being ignored and is being replaced with Black > Opaque. I thought that the "simulated metrics" stuff in IB were exactly that -- simulat

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Ben Kennedy
If that is indeed the context in which Gerriet is receiving the error, it sounds as though the routine generating it is assigning an inappropriate error domain then, no? Surely it should be a CoreAudio-related domain (specifically for the reason illustrated by this thread). b Sent from my iPh

Re: Client certificate extraction out of SSL/TLS Connection on server side

2014-05-15 Thread Ben Kennedy
As a workaround, couldn't you just empirically determine the value of that constant (presuming it hasn't changed in five years and is not expected to change), and then define a new constant of your own accordingly? b Sent from my iPhone > On May 15, 2014, at 1:06 PM, Jens Alfke wrote: > > I

Re: Retain count in non ARC

2014-04-06 Thread Ben Kennedy
onatomic default is a peculiarity of Obj-C that never seemed to be well documented or explained when properties were first introduced. b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing lis

Re: Getting the location of the Library

2013-06-23 Thread Ben Kennedy
On 23 Jun 2013, at 2:32 PM, Ben Kennedy wrote: > I haven't tested anything, but just looking at this line, I am inclined to > guess the subtraction is your problem. If your intent is to choose all > domains except for the system domain, you'll need to XOR the value, not

Re: Getting the location of the Library

2013-06-23 Thread Ben Kennedy
g at this line, I am inclined to guess the subtraction is your problem. If your intent is to choose all domains except for the system domain, you'll need to XOR the value, not subtract it, i.e. (NSAllDomainsMask ^ NSSystemDomainMask). b -- Ben Kennedy, chief magician Zygoat Creativ

Re: Looking for a good starting point to create a shared data resource between iOS apps

2013-06-20 Thread Ben Kennedy
r approach to use NSUserDefaults and then populate an app's bundle > that contains the root.pList when the preference pane is displayed, or is > this not possible based on how preferences work? The Settings.bundle in an iOS app is built into the app bundle and cannot be modified. b -- Ben Ke

Re: archiving report

2013-02-26 Thread Ben Kennedy
dCell--but proves that the magic string "$null" has been turned into nothingness.) b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Autosave in place - common use case that makes me hate it

2012-09-21 Thread Ben Kennedy
On 21 Sep 2012, at 4:24 pm, Michael Vannorsdel wrote: > I think if you have really good undo support people find autosave less of an > annoyance. I think if you have really good first aid service then people find repeatedly tripping down the stairs less of an annoyance. b -- Ben K

Re: help indexer or hiutil help

2012-08-18 Thread Ben Kennedy
. m. Anchors have never worked for me. I've defined them both in old-style and modern formats, yet hiutil seems to ignore them. Years ago I gave up and started settling for opening help pages at the top-of-page. Have always been puzzled why the help system seems so needlessly arca

Re: self.myTextField.stringValue = @"" fails

2012-05-08 Thread Ben Kennedy
stitution. Certainly not true. @"" is a zero-length string. It is an NSString object. It has an address. It is most definitely not nil. -b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-de

Re: Implementing undo in custom model object for lots of properties

2012-05-07 Thread Ben Kennedy
or(SETTER) object:PROPERTY]; \ [PROPERTY release]; \ PROPERTY = [newValue copy]; \ } \ } DEFINE_UNDOABLE_COPYING_SETTER(setPgmInTC:, pgmInTC); DEFINE_UNDOABLE_COPYING_SETTER(setPgmOutTC:, pgmOutTC); //etc. thanks! b -- Ben Kennedy, chief magician Zygoat Creative Technical Serv

Implementing undo in custom model object for lots of properties

2012-05-07 Thread Ben Kennedy
Monkey" sample for its undo practices, and it just implements the verbose boilerplate for each property. Is that really the recommended solution? thanks, -ben -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Coc

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-04 Thread Ben Kennedy
> On May 3, 2012, at 6:11 PM, Ben Kennedy wrote: > >> Separate from the above, I also have a new performance problem. The loop in >> which I do my cascading updates executes inordinately slowly; simply >> assigning new values for two properties takes about 0.45 seco

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-03 Thread Ben Kennedy
ts. It used to be instantaneous before bindings came into the picture. I suspect that all of the KVO overhead is to blame (a quick peek in Instruments supports this). Is there something fundamental I'm missing to avoid this bottleneck? thanks, b -- Ben Kennedy, chief magician Zy

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-01 Thread Ben Kennedy
ace my steps and try to figure out what subtle critical difference I've introduced. cheers, b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-01 Thread Ben Kennedy
by the latter two NSTableViewDataSource methods) are not enforcing validity when the attached formatter returns NO from getObjectValue:forString:errorDescription:. cheers, b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca __

Re: No validation with a bound NSTableView and custom NSFormatter

2012-05-01 Thread Ben Kennedy
DataSource-backed) columns? Additionally: for a bound column, my understanding is that validate:error: should be called against the object to check validity (at least in the absence of an attached formatter). However, it doesn't. Is there a prerequisite I am failing to satisfy? thanks,

No validation with a bound NSTableView and custom NSFormatter

2012-05-01 Thread Ben Kennedy
t where to approach the fix. Enlightenment would be appreciated. thanks, -ben -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-24 Thread Ben Kennedy
se the expression in extra parentheses to clarify the intent. Personally I enjoy the latter. b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: copy & isEqual nightmares

2012-02-17 Thread Ben Kennedy
ring: bring to the table over its implementation of isEqual? Is it just a matter of foregoing an 'if ([obj isKindOfClass:[NSString class])' construct at the front end? Put another way, why does NSString provide isEqualToString: as a distinct method? b -- Ben Kennedy, chief magician

Re: Make Custom Struct Key-Value Coding Compliant

2012-02-12 Thread Ben Kennedy
ating time tracking it down) that NSManagedObject subclasses with properties declared in this way--while compiling without incident--throw exceptions when called under 10.6.8. b -- Ben Kennedy, chief magician Zygoat Creative Technical Services h

Re: Use of Application nib file template

2012-01-29 Thread Ben Kennedy
register contains the exception (à propos to the current ABI) and then issue the call oneself. Wouldn't it make more sense for Xcode to offer a "print the exception" checkbox in the breakpoint inspector? I suppose I should file a bug against this (if I haven't already; I

Re: Use of Application nib file template

2012-01-29 Thread Ben Kennedy
> consult your local ABI documentation for more info. Why doesn't Xcode do this automatically? Infuriating. b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Blocks and Methods...

2012-01-28 Thread Ben Kennedy
On 28 Jan 2012, at 8:51 am, Ken Thomases wrote: > By itself, an array only retains the block. A block must be explicitly > copied if it is to outlive the scope that created it. If so, isn't that a fundamental semantic change to the meaning of "retain"? On any other object a retain will cause

Re: NSTimer and touch events

2012-01-10 Thread Ben Kennedy
timer to actually get posted. The same oversight had me scratching my head for 15 minutes a few weeks ago. b -- Ben Kennedy, chief magician Zygoat Creative Technical Services http://www.zygoat.ca ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: NSString looses Umlaute

2011-12-21 Thread Ben Kennedy
rbled. > > The original file is ascii-encoded. Impossible. ASCII does not represent any characters with diacritical marks. Perhaps the original file is ISO-Latin-1 encoded. You could try using NSISOLatin1StringEncoding. b -- Ben Kennedy, chief magician Zyg

  1   2   >