Re: NSAppKitVersionNumber wrong on latest Big Sur versions?!

2023-01-06 Thread Sean McBride via Cocoa-dev
On 6 Jan 2023, at 16:27, Rob Petrovec wrote: > Yes, this is a bug that started in 11.7 that doesn’t appear to have been > fixed yet in 11.7.2. Thanks for the confirmation. Sad that such a serious regression wasn't fixed in 11.7.1 nor 11.7.2. > Have you tried the arguably more robust and less

NSAppKitVersionNumber wrong on latest Big Sur versions?!

2023-01-06 Thread Sean McBride via Cocoa-dev
Hi all, On at least 3 Macs in my office, running macOS 11.7 or 11.7.2, NSAppKitVersionNumber (at runtime) is 2202.7 (sic). This conflicts with NSApplication.h which has: static const NSAppKitVersion NSAppKitVersionNumber11_0 = 2022; static const NSAppKitVersion NSAppKitVersionNumber11_1 = 2022

Re: dispatch_apply() on an NSArray and Thread Sanitizer

2022-04-25 Thread Sean McBride via Cocoa-dev
Well, to close this thread, for anyone curious... I've tried on the same Mac, with the same Xcode version (13.2.1), on both macOS 11.6.6 vs 12.3.1, and it seems to be the OS that makes the difference. On 11, TSan correctly gives no error; but on 12 it gives this incorrect error about there bei

Re: dispatch_apply() on an NSArray and Thread Sanitizer

2022-04-19 Thread Sean McBride via Cocoa-dev
On 19 Apr 2022, at 19:35, Rob Petrovec wrote: > The docs for NSEnumerationConcurrent state that it is a hint and may be > ignored at run time. Ah, so they do. I had only checked in the header file. OK, one less mystery. Sean ___ Cocoa-dev mailing l

Re: dispatch_apply() on an NSArray and Thread Sanitizer

2022-04-19 Thread Sean McBride via Cocoa-dev
On 19 Apr 2022, at 18:47, Saagar Jha wrote: If Thread Sanitizer says your code has a race, it almost certainly has a race. Yeah, that's been my general experience until now. Your simple code seems OK superficially, but there are a couple things that could be problematic here: either your rea

dispatch_apply() on an NSArray and Thread Sanitizer

2022-04-19 Thread Sean McBride via Cocoa-dev
Hi all, If one wants to do something with every item in an NSArray in a concurrent way, is the following safe/correct? NSArray* array = @[@5, @6, @7, @8, @9, @10, @11]; dispatch_apply([array count], DISPATCH_APPLY_AUTO, ^(size_t idx) { id unused = array[idx]; }); Here of cour

Re: NSPredicate: Using NSExpression CAST(x, 'Class') is deprecated and will be removed in a future release

2022-03-16 Thread Sean McBride via Cocoa-dev
On 18 Nov 2021, at 19:44, Sean McBride via Cocoa-dev wrote: > Hi all, > > Starting in Monterey, I see a new message logged by Core Data during > persistent store migration: > > NSPredicate: Using NSExpression CAST(x,'Class') is deprecated and will be > removed in

NSPredicate: Using NSExpression CAST(x, 'Class') is deprecated and will be removed in a future release

2021-11-18 Thread Sean McBride via Cocoa-dev
Hi all, Starting in Monterey, I see a new message logged by Core Data during persistent store migration: NSPredicate: Using NSExpression CAST(x,'Class') is deprecated and will be removed in a future release. 'MyClassName' should not be cast into a Class object.' This is due to my .xcmapping m

Re: How to check signature and notarization?

2021-04-12 Thread Sean McBride via Cocoa-dev
On Mon, 12 Apr 2021 18:36:12 +0200, Gabriel Zachmann via Cocoa-dev said: >Is there a way to check that the signature and notarization is proper? >Are there any other checks I can do to determine what is going wrong? You might find this helpful:

Re: Thoughts on ARC

2019-10-02 Thread Sean McBride via Cocoa-dev
On Wed, 2 Oct 2019 10:50:19 +1300, Sam Ryan via Cocoa-dev said: >That was a good read, thank you for passing that on. It highlights a good >point, that Apple is itself releasing applications with non-Mac UI (News, >Home, Stocks, Voice Memos are mentioned in that article). Another way to look at i

Re: NSTextField "Discard Change"

2019-04-09 Thread Sean McBride
jectController. In my case, I'm wanting to commitEditing on a text field in the action method of a push button that consults the text field's value. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue

Re: Crash in terminate: on Mavericks

2019-01-21 Thread Sean McBride
On Fri, 18 Jan 2019 16:48:37 -0800, James Walker said: >When my app runs in Mavericks (10.9.5), it crashes on quit, but in High >Sierra it's fine. The backtrace doesn't show any of my code, so I'm not >sure how to proceed. I don't suppose this means anything to anyone? Have you tried ASan and T

Re: Diagnosing memory problems

2018-11-27 Thread Sean McBride
On Tue, 27 Nov 2018 16:53:26 -0700, Rob Petrovec said: >Actually, you want the Zombies tool. That finds overreleased objects >like ones that cause the spew you are seeing. See also: 1) man guardmalloc 2) 3) NSZombieEnabled 4) CFZombieLevel

Re: How to clear macOS app bundle cache

2018-09-07 Thread Sean McBride
-kill -r -domain local -domain system -domain user Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Carbon -> Cocoa

2018-08-16 Thread Sean McBride
On Thu, 16 Aug 2018 11:54:59 +, Casey McDermott said: >I am curious, are there other developers on this list working on conversions >from C++ Carbon to Cocoa? By now, Cocoa may be the new Carbon. If you haven't switched to Cocoa after all these years, and if your app is large, I'd wait to s

Re: purpose of asking to access contacts

2018-06-13 Thread Sean McBride
it >works with the old AddressBook framework, or do I need to rewrite with >the CNContact stuff? It works with the old AB framework. I haven't even moved to the newer one yet, but I assume it works there too. Cheers, -- ________ Sea

Re: purpose of asking to access contacts

2018-06-13 Thread Sean McBride
On Wed, 13 Jun 2018 11:01:40 -0700, James Walker said: >On iOS, you can give the user a hint of why you need access to contacts >by putting a purpose string in the Info.plist. There isn't any way to >do that on macOS, is there? There is: NSContactsUsageDescription in your Info.plist Cheers,

Re: Deleting files extremely slow since OSX High sierra

2018-04-25 Thread Sean McBride
On Mon, 23 Apr 2018 07:36:26 -0400, Mike Throckmorton said: >Try replacing FSDeleteObject with [[NSFileManager defaultManager] >removeItemAtPath: pth error: &erro]; Don't do that, it's sorta-deprecated too. :) You want removeItemAtURL:error:. Sean

Re: Decompressing JPEG data into specific format, getting raw pixels

2017-08-17 Thread Sean McBride
On Wed, 16 Aug 2017 18:39:56 -0500, Ken Thomases said: >On Aug 16, 2017, at 6:29 PM, Sean McBride wrote: >> >> >> Right, but then I'm back where I started. :( Because there's >(apparently) no way to ensure that the NSBitmapImageRep I get is in a >particula

Re: Decompressing JPEG data into specific format, getting raw pixels

2017-08-16 Thread Sean McBride
geRep I get is in a particular format, and I absolutely need 8 bit per pixel & greyscale. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww

Re: Decompressing JPEG data into specific format, getting raw pixels

2017-08-15 Thread Sean McBride
g on. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Decompressing JPEG data into specific format, getting raw pixels

2017-08-15 Thread Sean McBride
result is greyscale or RGB. If the latter, I write my own loop to convert to greyscale. But I'm hoping there is some lower level API available that I can tell explicitly that I want greyscale... Thanks, -- ________ Sean McBride, B. Eng

Re: Exact definition of NSView/NSEvent coordinate system origin?

2017-08-11 Thread Sean McBride
On Fri, 11 Aug 2017 11:53:10 -0500, Ken Thomases said: >> I know 0,0 is the bottom-left, but is it: >> - the centre of the bottom-left pixel? >> - the bottom-left corner of the bottom-left pixel? > >It's the bottom-left corner of the bottom-left pixel. Playing around with NSRectFill() that indeed

Exact definition of NSView/NSEvent coordinate system origin?

2017-08-11 Thread Sean McBride
starts from a base of 1, not 0." That's quite odd. Why? Does anyone know the exact details here? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.ro

Re: NSWindow non-integer point sizes? (on Retina dispays)

2017-07-01 Thread Sean McBride
On Fri, 30 Jun 2017 19:29:54 -0500, Ken Thomases said: >> Does anyone know what NSWindow's initWithContentRect: behaviour is >with non-integer contentRect? The docs don't say. It seems that, on a >retina display, window size can only be an even number of pixels (ie an >integer number of points).

Re: NSWindow non-integer point sizes? (on Retina dispays)

2017-07-01 Thread Sean McBride
On Fri, 30 Jun 2017 11:00:40 -0700, Quincey Morris said: >On Jun 30, 2017, at 10:26 , Sean McBride wrote: >> >> Does anyone know what NSWindow's initWithContentRect: behaviour is >with non-integer contentRect? > >Not really, but is there a reason why you can’t ju

NSWindow non-integer point sizes? (on Retina dispays)

2017-06-30 Thread Sean McBride
orm OpenGL-based code that wants to create windows of odd pixel count size. I figure it's not possible, but thought I'd check here...) Thanks, -- ________ Sean McBride, B. Eng s...@rogue-researc

Re: Using Quartz Debug to simulate Retina display broken?

2017-04-07 Thread Sean McBride
on a MacPro4,1, MacPro5,1, MacBook6,1, MacMini7,1, and it doesn't work on any of them. I did get one HiDPI choice on an iMac11,1. Well, this sucks. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research

Using Quartz Debug to simulate Retina display broken?

2017-04-06 Thread Sean McBride
ml> and despite letting it log me out, there are no "HiDPI" options available in System Preferences > Displays. I'm on 10.12.4 on a MacPro5,1. Anyone used this successfully recently? Thanks, -- ____ Sean McBride, B. E

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

2017-01-13 Thread Sean McBride
not done by now. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal

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

2017-01-13 Thread Sean McBride
rprising! Foundation's NSObject.h *does* however. What a mess. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

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

2017-01-13 Thread Sean McBride
On Fri, 13 Jan 2017 09:53:25 -0800, Jens Alfke said: >So yes, the parameter should be declared as `nullable`. Thanks, Sean ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

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

2017-01-13 Thread Sean McBride
n run] () #18 NSApplicationMain () #19 main Anyone ever seen nil passed to isEqual:? Is the SDK declaration maybe wrong? Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: 12 hr vs 24 hr time display

2017-01-03 Thread Sean McBride
exists (file a bug) but it's clearly meant only for the menu bar clock. Just use NSDateFormatter and add some UI in your app showing the user the proper place to set her preferred date/time format options. Cheers, -- ____ Sean M

How to know if an NSFont can draw an NSString?

2016-12-09 Thread Sean McBride
g? Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev ma

Re: Elementary NSUserDefaults Question

2016-12-07 Thread Sean McBride
our bookmark to a path. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Co

Re: Elementary NSUserDefaults Question

2016-12-07 Thread Sean McBride
"bookmarks". See NSURL's bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-

Re: Preserving knowledge of renamed/moved directory?

2016-11-28 Thread Sean McBride
n if the path >to it changes? Stay valid for how long? If you need to persistent them, use them across reboots, etc. see bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error. Cheers, -- ________ Sean McBr

Re: Why does default NSDateFormatter in IB ignore thousands separator?

2016-11-04 Thread Sean McBride
uot;usesGroupingSeparator="NO"" and "groupingSize="0"" in the xib seems to fix the problem for me. I'll probably go with that "solution". Cheers, -- Sean McBride, B. Eng s...@rogue-research.c

Why does default NSDateFormatter in IB ignore thousands separator?

2016-11-02 Thread Sean McBride
hoose the thousands separator, mine is set to 'space'. Why on Earth does a default NSNumberFormatter ignore the user's choice? Am I alone thinking this is buggy? Thanks, -- Sean McBride, B. Eng s

Re: Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
otes: <https://developer.apple.com/library/content/releasenotes/AppKit/RN-AppKit/index.html> So sorry for the noise! Thanks David & Greg! Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
On Tue, 20 Sep 2016 14:26:27 -0700, David Duncan said: >> On Sep 20, 2016, at 1:21 PM, Sean McBride wrote: >> >> Hi all, >> >> WWDC 2016 Session 203 "What's New in Cocoa" at around 43:37 in the >video, says that if you link against the 10.11 SDK

Success with NSTableView weak delegates?

2016-09-20 Thread Sean McBride
view delegates? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev

Re: Drawing issue with translucent borderless NSWindow, initial content half stays

2016-09-07 Thread Sean McBride
On Tue, 30 Aug 2016 21:03:20 -0500, Ken Thomases said: >On Aug 30, 2016, at 10:10 AM, Sean McBride wrote: >> >> I have a drawing bug in my app, and reduced it to a toy app. >Basically, I create an NSBorderlessWindowMask type window who's content >view draws a tran

Drawing issue with translucent borderless NSWindow, initial content half stays

2016-08-30 Thread Sean McBride
is someone cares to look...: <https://www.rogue-research.com/BackgroundBug.zip> Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac So

Re: awakeFromFetch behaviour change in 10.12?

2016-08-12 Thread Sean McBride
On Mon, 25 Jul 2016 21:09:09 -0400, Sean McBride said: >>> I'm observing that in 10.12 my awakeFromFetch methods are being called >>> more than in 10.11 and earlier. Specifically, it's called more than once >>> for an object that's already been fetched

Re: awakeFromFetch behaviour change in 10.12?

2016-07-25 Thread Sean McBride
On Mon, 25 Jul 2016 14:12:42 -0500, Kyle Sluder said: >On Mon, Jul 25, 2016, at 09:14 AM, Sean McBride wrote: >> Hi all, >> >> I'm observing that in 10.12 my awakeFromFetch methods are being called >> more than in 10.11 and earlier. Specifically, it's c

awakeFromFetch behaviour change in 10.12?

2016-07-25 Thread Sean McBride
nvoked before. Does that seem correct to you? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Exact semantics of NSThread executation states?

2016-07-12 Thread Sean McBride
lways be true, but on 10.12b2 it's not. I'm trying to understand if my assumption was wrong or if it's an OS bug. Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: NSTableView is messaging zombie delegate

2016-05-09 Thread Sean McBride
pport zeroing weak references (under ARC) with NSTextView As for NSMenu, it came back: "Although the delegate is declared “assign” in NSMenu.h, it’s actually been weak (for weak-compatible objects) since 10.9." When switching from GC to ARC, all this was a PITA. Cheers, -- _

Re: BOOL parameter passed as nil object

2016-04-18 Thread Sean McBride
ning for this? :( Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Alternatives to NSMatrix that uses bindings similar to NSMatrix's bindings

2016-04-07 Thread Sean McBride
built-in IB support, but maybe you'll find it helpful. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada // // RRRadioBinder.h // //

Re: Can an NSArray ever have a count of -1?

2016-02-19 Thread Sean McBride
for right job' kind of thing. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-

Re: App Transport Security exceptions App Store signed app

2016-01-27 Thread Sean McBride
enefit users. Someone should nudge Apple's Server.app team then, because its apache still supports only TLSv1.0, rather laughably! :( Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.c

Re: applicationSupportDirectory access for admin and standard users

2015-12-21 Thread Sean McBride
trying to write to the directory? Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list

Re: Best way to get a file path for presentation to the user

2015-12-19 Thread Sean McBride
On Sat, 19 Dec 2015 19:51:03 +1100, Graham Cox said: >I don’t think a NSPathControl is really appropriate for this. I'm curious why... that's what it's for. Cheers, -- ________ Sean McBride, B. Eng s...@

Re: FSIsAliasFile deprecated - typeOfFile is slow

2015-11-27 Thread Sean McBride
leKey. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Private Methods

2015-08-18 Thread Sean McBride
t start with underscore! Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: Private Methods

2015-08-18 Thread Sean McBride
only a few conflicts over the years, in which case I rename. You can set the OBJC_PRINT_REPLACED_METHODS env var to help catch conflicts. Always a good idea with beta version of major OS releases. Cheers, -- ____ Sean McBride,

Re: Sharing Prefs between Main and Helper App

2015-08-16 Thread Sean McBride
y to do this for now. I know that initWithSuite works with App >Groups and sandbox…but again I don't want to be sandboxed just yet. I suspect initWithSuite works without App Sandbox too... Cheers, -- ________ Sean McBride, B. Eng

Re: NSManagedObject, NSString property retain vs copy

2015-08-01 Thread Sean McBride
ample code (I guess this is what the op is >talking about) use retain is dubious. This has long been a weakness in the Core Data ecosystem. Even mogenerator does not have an option to make things 'copy': <https://github.com/rentzsch/mogenerator/issues/41> I might take a

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
On Tue, 30 Jun 2015 20:50:06 +, Quincey Morris said: >On Jun 30, 2015, at 13:41 , Sean McBride wrote: >> >> Calling orderOut: myself (right after runModal) doesn't actually order >the window out either. :( > >Is this app sandboxed? No. >If so, I wouldn’t ex

Re: Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
e wrong thing. Thanks for the suggestions. The difficulty will be that this old code really requires the synchronous nature of runModal, as the found NSURL must be returned up to the calling function. Really I should get around to cleaning it all up one day... :) Cheers, -- ______

Back-to-back NSOpenPanel runModal blocking each other

2015-06-30 Thread Sean McBride
he new one is thus blocked. If I throw in a sleep(1) before showing a second one, things work as desired. Should what I'm trying to do work? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com

Re: recycleURLs with authorization

2015-06-17 Thread Sean McBride
at they've authorised its removal. You should look at the SMJobBless sample code, which I think is the current way to do things: <https://developer.apple.com/library/mac/samplecode/SMJobBless/Introduction/Intro.html> Cheers, -- ___

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

2015-06-15 Thread Sean McBride
that all support Obj-C thanks to it being in clang (otherwise those tools would only support C/C++ I'm sure). Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: iOS version check

2015-06-12 Thread Sean McBride
even if you didn’t set the rate explicitly.) It was just a bug >fix. Perhaps checking the generic system version is the only solution. Yes, I think so. I've had to fall back on that kind of check sometimes. Cheers, -- ________

Re: iOS version check

2015-06-12 Thread Sean McBride
dation version is dubious. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Going back to non-ARC

2015-06-12 Thread Sean McBride
tml> Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mail

Re: 3D file formats

2015-06-12 Thread Sean McBride
to leverage the support I see in Preview/QuickLook in >my own apps? QuickLook has public API, "QLPreviewView" looks like what you want. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: IB_DESIGNABLE - anyone got it to work?

2015-05-12 Thread Sean McBride
gers the same exception, only when it’s drawn by >the IB rendering agent. > >Has anyone been able to make this work? After some difficulty, yes. But it seems to only support direct subclasses of NSView, not NSControl for example. What's your superclass? Cheers, -- ______

Re: Core Data sync between iOS and Mac apps

2015-05-07 Thread Sean McBride
ne's been open for 3 years now. Duped to which is still open too. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Creating new/untitled NSPersistentDocuments from template documents?

2015-05-01 Thread Sean McBride
tion = "Cannot update objects into a read only store."; readFromURL: seems to have added my template as a persistent store in the persistent store coordinator. :( Cheers, -- ________ Sean McBride, B. Eng

Creating new/untitled NSPersistentDocuments from template documents?

2015-05-01 Thread Sean McBride
e my .app). It's mostly working, but everything I try seems to keep some connection to the hidden template document's URL. Any suggestions on a kosher way to do this? Thanks, -- ________ Sean McBride, B. Eng s...@rogu

Re: UTI case doesn't matter sometimes?

2015-04-13 Thread Sean McBride
On Mon, 13 Apr 2015 14:09:06 -0500, Steve Mills said: >So, should string comparisons be case-insensitive when comparing UTIs? >If not, then things fail. Don't compare as strings, use UTTypeConformsTo(). Cheers, -- ____ Sean

Re: Proper switching and casing.

2015-04-09 Thread Sean McBride
-Wimplict-fallthrough >Is there any reasonable case where you'd want a case condition to not >have a break statement after it? Yes, but not often IMHO. Cheers, -- ________ Sean McBride, B. Eng

Re: Does GCD auto-limit concurrent tasks to number of cores?

2015-04-09 Thread Sean McBride
of RAM too, or you'll swap and easily end up dog slow. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Where is my bicycle?

2015-04-06 Thread Sean McBride
On Mon, 6 Apr 2015 11:36:38 -0500, Charles Srstka said: >Objective-C doesn’t support Unicode in source files (although Swift does). Yes it does, and it has for many years too. Cheers, -- ____ Sean McBride, B. Eng

View-based tableview and outlets to NSFormatters

2015-04-01 Thread Sean McBride
have a delegate; need to assign column identifiers and switch on them. Is there no better way? Thanks, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue

Re: Number formatter errors

2015-04-01 Thread Sean McBride
t I have existing projects where a dialog appears. I'm >sure I'm missing something simple, but it's escaping me. Any hints? Do you have 'validates immediately' on? Cheers, -- ____ Sean McBride, B. Eng

Re: windowDidLoad not getting called

2015-03-19 Thread Sean McBride
it... :( Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-12 Thread Sean McBride
orBinding: to return info for my own bindings, and again only call super for super's bindings. Thanks! -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-11 Thread Sean McBride
you can "fix" the bug Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-11 Thread Sean McBride
one or two, and as per Murphy's Law one is being problematic. :) >are you using for your context pointers? Mine are always non nil >pointers to a static char. Likewise. Cheers, -- ____ Sean McBride, B. Eng s...@r

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-11 Thread Sean McBride
ing fixed... but maybe there is another bug... Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develop

removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-10 Thread Sean McBride
() -[MyObjectController removeObserver:forKeyPath:context:] -[MyView unbind:] ... Odd that NSObjectController removeObserver:forKeyPath:context: calls removeObserver:forKeyPath:, no? Any clues would help... :) Thanks, -- ________ Sean McBride, B

Re: Converting from scalar to NSNumber*

2015-02-27 Thread Sean McBride
ributeValue: and someAttributeValue, which take scalars. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: Updating Mapping Model after changing schema

2015-02-26 Thread Sean McBride
oduce. > >Does anyone have a solution for this? TIA, Xcode menu bar: Editor > Refresh Data Models. Or maybe I misunderstand what you want... Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue R

[JOB] Looking for Mac Cocoa dev in Montréal, Canada

2015-02-21 Thread Sean McBride
- Work in a nice loft-style office in a central location in Montreal. To apply: - email your CV to c...@rogue-research.com Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: ARC dealloc best pratice

2015-02-10 Thread Sean McBride
guess for NSTableView there's no need to nil the delegate. OTOH, my experience converting my GC app to ARC says the exact opposite. Without clearing the delegate to nil in say windowWillClose, I get sporadic crashes. What's the true situation for NSTableView? Cheers, -- __

Re: GC / ARC question regarding screensavers under Mavericks

2015-01-16 Thread Sean McBride
determine-if-a-compiled-objective-c-app-is-using-garbage-collection> Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: Cursor above siblings

2015-01-09 Thread Sean McBride
drawing order is wrong when layer hosting/backing is involved . Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: NSURL resourceValuesForKeys NSURLPathKey

2015-01-08 Thread Sean McBride
rk, >but it does seem to work without it. Thoughts? I would put it. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.r

Re: ARC query

2015-01-07 Thread Sean McBride
ing with this under ARC... Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Q

Re: [BUG] Documents (sandboxed too) won't open from iCloud Drive

2014-11-28 Thread Sean McBride
easily tell if an app is sandboxed from Activity Monitor. Go to the CPU tab, and context-click on the table's column header, there you can show/hide different columns, including a column that shows if the process is sandboxed. Cheers, --

Re: help with debugging

2014-11-18 Thread Sean McBride
acosx.crashlog" part. I've never tried with an exception backtrace, but there's likely enough info it that doc to do it all. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue

Re: help with debugging

2014-11-18 Thread Sean McBride
d the bug? ). Those offsets tell you how far into the function (in bytes I think) it was. You can indeed bring that back to a line number. See here: <http://lldb.llvm.org/symbolication.html> Cheers, -- Sean McBride, B.

Re: NSPersistentDocument, Export (Save As) and wal/shm

2014-11-17 Thread Sean McBride
not understand I was looking for a workaround, which I have now reiterated. Hopefully something will come of it... Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-re

Re: NSPersistentDocument, Export (Save As) and wal/shm

2014-11-14 Thread Sean McBride
hing obvious. Jerry Krinock's solutions, that you no doubt found googling, seem to be working for me, but I don't like swizzling if I can avoid it. I actually just opened a DTS incident on this the other day, no word back yet. Will follow up here. Cheers, -- _______

Re: Saving a Document style app

2014-11-07 Thread Sean McBride
you've found, it can't easily be done with NS(Persistent)Document. Please do file a radar for this, as the current situation is ridiculous really. Cheers, -- Sean McBride, B. Eng s...@rogue-research.c

  1   2   3   4   5   6   7   8   9   10   >