Re: How do decipher an exception in the log file

2023-07-18 Thread Ben Kennedy via Cocoa-dev
wing the base load address of the executable. A full-on crash report, rather than log messages, would be a lot more useful. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

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

2022-12-11 Thread Ben Kennedy via Cocoa-dev
uld be possible to resolve it. Indeed, it seems to work in a Swift REPL. Issuing... (URL(fileURLWithPath: "/Users/ben/Library/Containers/com.apple.ScreenSaver.Engine/Data/Pictures").resolvingSymlinksInPath().path as NSString).abbreviatingWithTildeInPath .

Re: Indexing broken for one project

2022-02-13 Thread Ben Kennedy via Cocoa-dev
something different for your main user? -ben ___ 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(at)lists.apple.com Help/Unsubscribe/Upda

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
MyView, declared like this: > > @interface MyView : NSView CAAnimationDelegate> > { >NSWindow * window_; >... > } > @property (readwrite) NSWindow * window_; What’s the purpose of this? NSView already has a `window` property that returns its parent window. Why

Re: How to distinguish between different MS Teams statuses

2021-07-22 Thread Ben Kennedy via Cocoa-dev
a future version such that the window is called something else? The window-enumeration approach is coarse and fragile at best. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

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
countdown -= 1 > } > let timer = Timer(timeInterval: 1.0, repeats: true) { timer in > if countdown == 0 { > timer.invalidate() > NSApp.abortModal() > } else { > updateMessage() > } > } > upd

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
that creates a property list out of > NSData? Not in the typical meaning of the phrase. It's a poorly-named method. It returns a "property list object" (the important part being "object"), by which it means an object of a class w

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
find anywhere else suitable to use for sharing files that need to be > read and written by different users - /Users/Shared doesn't seem right Why not? -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin request

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
; > [button sizeToFit]; > [button setFrameOrigin:NSMakePoint(position, 20)]; Since you're positioning the frames manually, you need to set setTranslatesAutoresizingMaskIntoConstraints = YES instead of NO. -ben ___ Cocoa-dev mailing list (Co

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
s for -[initWithNibName:bundle:]. But when a storyboard or nib is unarchived, -[initWithCoder:] is called instead. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Bug reporting again.

2020-11-22 Thread Ben Kennedy via Cocoa-dev
dress could not be found.”. Apple replaced Bug Reporter with Feedback Assistant months ago: https://developer.apple.com/bug-reporting/ The web site you're looking for is https://feedbackassistant.apple.com. -ben ___ Cocoa-dev mailing list (Co

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
should only contain numeric (0-9) and period (.) > characters. The space breaks this. If you need a compound identifier like this, put it in a custom key in the Info.plist. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Question about Info.plist's

2020-08-19 Thread Ben Kennedy via Cocoa-dev
ber" or whatever. (But why not just take advantage of the existing CFBundleShortVersionString and CFBundleVersion?) -ben [1] https://developer.apple.com/library/archive/technotes/tn2259/_index.html: Under the heading "What's Next", about a third of the way down, the text seems to confuse "

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

2020-08-09 Thread Ben Kennedy via Cocoa-dev
ue like in a normal window (and, to my eye, everything else in the popover otherwise looks the same)! cheers, -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: Thoughts on Cocoa source code

2019-10-09 Thread Ben Kennedy via Cocoa-dev
, not a Cocoa development question. Besides, nobody on this list will have an authoritative or succinct answer. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

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
numbers earlier; judging my library of old and still-open bugs, that would put it at mid-2011 or so...) -ben > On 14 May 2019, at 3:20 pm, Peter Hudson wrote: > > Hi Jens > > Sorry my description was not clear. What happened is that the edit widget > panel would appear on the

Re: Category errata in Objective-C

2019-03-29 Thread Ben Kennedy
mount to the same thing, which is exposing the symbol names to your interpreter or compiler for your convenient use as a programmer. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

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
ether a given string matches the > beginning characters of the receiver. -ben ___ 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-

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
veloper.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html#//apple_ref/doc/uid/TP40011210-CH5-SW3 https://developer.apple.com/library/mac/documentation/General/Conceptual/DevPedia-CocoaCore/ObjectOwnership.html#//apple_ref/doc/uid/

Re: Does setFormatter() retain?

2016-08-24 Thread Ben Kennedy
sn't, it won't. The legacy delegate stuff that you cited calls out the fact that they don't because it is contrary to normal expectations, and thus requires explicit concern by the caller. -ben ___ Cocoa-dev mailing list (Cocoa-dev@li

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
le view. Perhaps in such a case there is additional UI-related work not suitable for inclusion in fireTheRockets. This decoupling enables you to separate these concerns. -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

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
ter domain. I imagine that if you either drop the 'www.' or add the NSIncludesSubdomains it might work...? -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Settings.bundle settings disappear while running

2016-01-12 Thread Ben Kennedy
that force-quitting the Settings.app and relaunching it causes the stuff to show up again. This seemed only to be a problem during development. Is that what you're talking about? cheers, -ben > On 21 Dec 2015, at 12:52 pm, Eric E. Dolecki wrote: > > Working on an application w

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: Drawing many different strings quickly

2015-10-01 Thread Ben
I will have a small play with drawing options in case there more headroom that can be quickly gained, but am currently very happy. Thank you all for the assistance. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Drawing many different strings quickly

2015-09-28 Thread Ben
> On 28 Sep 2015, at 17:08, Jens Alfke wrote: > > >> On Sep 28, 2015, at 1:41 AM, Ben > <mailto:ben_cocoa_dev_l...@yahoo.co.uk>> wrote: >> >> When scrolling vertically, there could be up to 100,000 strings to be drawn, >> horizontally, much fe

Re: Drawing many different strings quickly

2015-09-28 Thread Ben
> On 27 Sep 2015, at 19:26, Quincey Morris > wrote: > > On Sep 27, 2015, at 10:42 , Ben <mailto:ben_cocoa_dev_l...@yahoo.co.uk>> wrote: >> >> - Not all strings to be drawn at once, a scroll view is being used and I am >> using responsive scrolling to

Drawing many different strings quickly

2015-09-27 Thread Ben
to be drawn in the same font/size/colour - I can target the current (or current+1) OS version if that makes any difference Any pointers or suggestions gratefully accepted! - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

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
laceholder as a PHAsset and do something with it */ ; What are you ultimately trying to do? cheers, -ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderat

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: NSWindow child window and key status

2015-06-16 Thread Ben
Thank you for the suggestion, unfortunately it does not fix the problem. I will probably end up using a tech support incident for this one. - Ben > On 15 Jun 2015, at 23:50, Quincey Morris > wrote: > > On Jun 15, 2015, at 13:38 , Ben <mailto:ben_cocoa_dev_l...@yaho

NSWindow child window and key status

2015-06-15 Thread Ben
o be able to do it, but this might involve private API. Ideally I'd like to do it without having to subclass the parent window. Thank you for any pointers, Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

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
__ > > 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(at)lists.apple.com > > Help/Unsubscribe/Update your Subscriptio

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

Move a folder and update corresponding Finder sidebar favorite

2015-05-20 Thread Ben Staveley-Taylor
return whether it needs to be recreated. Thanks for any help, — Ben. ___ 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(at)lists.apple.

How do I prevent NSUserNotifications from being added to the notification list?

2015-03-24 Thread Ben Jones
c. [center scheduleNotification:notification]; Does anybody know how I can programmatically prevent the notification from being added to the notification list (the one that is opened by clicking on the icon at the top right of the screen)? Many thanks, Ben. ___ Cocoa-dev ma

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Ben
> On 2 Mar 2015, at 19:10, Uli Kusterer wrote: > > On 02 Mar 2015, at 19:26, Ben wrote: >> - Granularity of selection. For example single or multiple disconnected >> cells. NSTableView only gives me row or column. >> - Scrollable floating headers on both axis. Thi

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Ben
> On 2 Mar 2015, at 17:42, Quincey Morris > wrote: > > On Mar 2, 2015, at 02:44 , Ben <mailto:ben_cocoa_dev_l...@yahoo.co.uk>> wrote: >> >> Since NSCell is apparently on the way out, I've been trying to build a new >> control I need using views. I

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Ben
> On 2 Mar 2015, at 15:45, Uli Kusterer wrote: > > On 02 Mar 2015, at 15:54, Ben <mailto:ben_cocoa_dev_l...@yahoo.co.uk>> wrote: >>> On 2 Mar 2015, at 14:10, Mike Abdullah >> <mailto:mabdul...@karelia.com>> wrote: >>>> On 2 Mar 2015, at

Re: Responsive scrolling control with lots of subviews

2015-03-02 Thread Ben
> On 2 Mar 2015, at 14:10, Mike Abdullah wrote: > >> >> On 2 Mar 2015, at 11:44, Ben wrote: >> >> Hi list, >> >> Since NSCell is apparently on the way out, I've been trying to build a new >> control I need using views. It's a cut-do

Responsive scrolling control with lots of subviews

2015-03-02 Thread Ben
any suggestions on how to achieve decent drawing/scrolling performance here? - Ben PS. I have tried using/subclassing NSTableView and have filed a bug for the functionality that I'm after (rdar://17406314 marked as dupe of rdar://2778108 ). ___ Coc

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
low. (And it wasn't slow on a Power Mac G3 back in the day >> either.) One guy is having some nasty slowdowns that seem to be caused by >> something incidental, not an intrinsic problem with the text system. >> >> --Jens > ___ >

Re: Is it possible to read your own quarantine info after launch?

2014-11-29 Thread Ben Staveley-Taylor
to host a different build, but probably a config file is the way to go. — Ben. On 28 Nov 2014, at 22:18, Ken Thomases wrote: > On Nov 28, 2014, at 10:14 AM, Ben Staveley-Taylor > wrote: > >> I want to determine from which server my application was downloaded, on its >>

AVCaptureInputPortFormatDescriptionDidChangeNotification confusion

2014-11-29 Thread Ben
I'm trying to get the video dimensions by using AVCaptureInputPortFormatDescriptionDidChangeNotification however the width & height returns a number way higher than I am expecting. Expecting 320/480 or similar but getting width = 1088784512, height = 1819304813. Any ideas what I am doing wrong?

Is it possible to read your own quarantine info after launch?

2014-11-28 Thread Ben Staveley-Taylor
-quarantined it and the info is gone. Is there a way to access the quarantine info after launch? Or is there another way to determine where the downloaded app came from? Thanks. — Ben. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

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: Printing onto custom paper (filling in forms)

2014-08-28 Thread Ben
On 28 Aug 2014, at 15:01, Keary Suska wrote: > On Aug 28, 2014, at 7:20 AM, Ben wrote: > >> I'm trying to make a tool for myself to fill in some repetitive forms. >> They've got a custom paper size with a series of boxes to be filled in. >> >> Given

Printing onto custom paper (filling in forms)

2014-08-28 Thread Ben
method that gives a scaling factor from points to any physical unit? I'll also need to precisely position drawn strings in the view to print, so will presumably need to translate points to physical dimensions when drawing too. Can anyone point me to something that might explain how to pr

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
ry to the shared container seems like the reasonably obvious thing to do. thanks, -ben ___ 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 coc

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

2014-07-18 Thread Ben Kennedy
t the practical range is but surely quite a number of bits). Having said this, determining the relative proximity based solely on RSSI didn't seem to be particularly straightforward in practice, especially if there a bunch of them nearby. cheers, -ben > On 17 Jul 2014, at 7:33 am, J

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

2014-07-14 Thread Ben Kennedy
tever size) with another chunk of data (whatever size). -ben ___ 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(at)lists.apple.com Help/Unsu

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

2014-07-14 Thread Ben Kennedy
h:1024]; ...? -ben ___ 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(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

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

unsubscribe

2014-05-27 Thread Ben Kazez
On May 27, 2014, at 3:41 PM, cocoa-dev-requ...@lists.apple.com wrote: > Send Cocoa-dev mailing list submissions to > cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/cocoa-dev > or, via email, send a me

Re: Where are the errors in NSOSStatusErrorDomain defined?

2014-05-21 Thread Ben Kennedy
>>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org >>> >>> This email sent to r...@rols.org >> > > > ___ > > Cocoa-dev mailing list

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

2014-05-15 Thread Ben Kennedy
gt; —Jens > ___ > > 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(at)lists.apple.com > > Help/Unsubscribe/Upd

Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
On 14 May 2014, at 11:52 am, Kyle Sluder wrote: > On May 13, 2014, at 6:31 PM, Ben Golding wrote: >> >> In an app I'm working on, I'd like to use a very basic text input field just >> like the one used by Xcode's Navigate>"Jump in File" (aka,

Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
In an app I'm working on, I'd like to use a very basic text input field just like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but I don't know what it's called so I can't look it up. Could someone let me know what it's called?

Re: Remove redundant AM/PM when formatting a time range?

2014-04-15 Thread Ben Kazez
f there's a good way to let localizers use the system-provided localized format as a starting point, for more consistency? Perhaps it would be simpler to simply split the formatted time strings on " " -- not the correct solution, to be sure, but it seems to work in a wide range of loc

NSTextFinder vs NSTableView -- mano a mano showdown

2014-04-15 Thread Ben Golding
e table rather than building an index at all. And geez it would be nice if there was a way for it to offer a regular expression option for power users. Thanks, Ben. smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing li

Remove redundant AM/PM when formatting a time range?

2014-04-11 Thread Ben Kazez
redundant AM/PM. Even if I can only make it work for a few languages (perhaps just by modifying the format string returned from -dateFormatFromTemplate?), it seems it would be worth it for the human-friendly result. Ben ___ Cocoa-dev mailing list (Cocoa

  1   2   3   4   5   6   7   8   >