Re: subclass overwriting superclass ivar

2010-05-26 Thread Sean McBride
GUARDS? -- ____ 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) Ple

Re: subclass overwriting superclass ivar

2010-05-26 Thread Sean McBride
ans the memory occupied by one ivar is being unexpectedly written to when writing to a different ivar. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: How to filter the NSOpenPanel with "Recommended Applications"

2010-05-27 Thread Sean McBride
t-in to do exactly that. You'll need to filter items yourself, see the docs for NSOpenSavePanelDelegate. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Sean McBride
process and pass its result back to your main process. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: UTI strings

2010-05-31 Thread Sean McBride
file queried when asking the OS for a file's UTI? Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréa

Re: UTI strings

2010-06-01 Thread Sean McBride
ated regularly) >> >> Is the magic file queried when asking the OS for a file's UTI? >> >Good question. >I don't know... According to the docs, the answer is No. But from your email address, I thought you might have been aware of an omission in the docs. :) Chee

NSNumberFormatter setLocalizesFormat, docs wrong or implementation wrong?

2010-06-02 Thread Sean McBride
applies to NSNumberFormatterBehavior10_4 formatters also. Are the docs just wrong? Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montré

NSNumberFormatter and printf-style %g ?

2010-06-02 Thread Sean McBride
tificStyle, but it seems unconditional. ex: I'll get "5E0" instead of just "5". I'd like numbers like 5 to appear as "5" and numbers like 0.005 to appear as 5E-7. Cheers, -- ________ Sean McBrid

Re: Monster memory leak and I can't figure out why

2010-06-03 Thread Sean McBride
such as the OP's. :( -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: Memory management on returning nil in init

2010-06-21 Thread Sean McBride
e. As others have said: yes, you leak. But the solution is not to call [self release], what you should do is call [super dealloc]. See here for a previous discussion of this topic: <http://lists.apple.com/archives/Objc-language/2008/Sep/msg00133.html> -- ________

Re: docs, KVO and NSUserDefaults etc.

2010-06-21 Thread Sean McBride
that you should ignore. :( Though in many cases, it could just be that the docs are out of date. :( -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: CoreData and undo/redo : how to add a managed object with attributes already set in the undo/redo stack ?

2010-06-29 Thread Sean McBride
in an implementation of this method, you should typically use primitive accessor methods (either setPrimitiveValue:forKey: or--better--the appropriate custom primitive accessors). This ensures that the new values are treated as baseline values rather than being recorded as undoable changes for t

Re: accessing core data sqlite from utility

2010-06-29 Thread Sean McBride
t's handy when debugging. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montr

Re: NSOpenPanel won't allow selecting aliases

2010-06-30 Thread Sean McBride
entifies them as aliases to folders... The NDAlias code should be helpful to you: <http://github.com/nathanday/ndalias> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchww

Re: how to set custom icon folder to invisible?

2010-07-05 Thread Sean McBride
to the average user though, because the Finder and NSOpenPanel won't show "Icon\r" files. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Ma

Re: KVO question

2010-07-05 Thread Sean McBride
ing. Who's observing who? When? Why? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Core Data : Save As : Object temporarily missing in fetch results

2010-07-05 Thread Sean McBride
of this one: Steps to Reproduce: - open Xcode - create NSPersistentDocument-based project - build and debug - File > Save As - try to save in /System/Library - it fails, and gives a nice error message - now, try to save on your desktop Expected Results: - success Actual Results: - an exce

Re: Custom bundle icon

2010-07-05 Thread Sean McBride
ll always look like a file on any system. See 'man GetFileInfo' for more. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Pass-by value … warning (was: NSTextFie ld fieldeditor subclass example? (and an unrelated other in quiry))

2010-07-07 Thread Sean McBride
cess that Apple's bugreporter. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: NSView Docs. Was: Binding -- or not -- a button created in code

2010-07-09 Thread Sean McBride
en method, viewWillMoveToSuperview is invoked with a nil parameter. :( I filed about this. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software De

Re: Another basic CoreData question

2010-07-09 Thread Sean McBride
oller) of Employees, adding a new Employee will result in two items in the table (but not your model). -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-res

Detecting 'nop' clicks on an NSPopUpButton?

2010-07-09 Thread Sean McBride
tions that don't do anything useful.) Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: Another basic CoreData question

2010-07-09 Thread Sean McBride
fetch in awakeFromInsert. :( Say you have a 'Create Employee' push button. You can implement an action method for it, and in there a new Employee Managed Object, fetch the Department, and connect them. -- ________ Sean McBride, B. Eng

Re: NSView Docs. Was: Binding -- or not -- a button created in code

2010-07-09 Thread Sean McBride
ip anything" pile. :) In my case it was a big deal, because full screen is an important feature. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Sean McBride
Matt James (matteja...@gmail.com) on 2010-07-10 10:31 said: >After using this technique, I did have one more question related to >automated class generation. A much more automated solution is to use mogenerator: Sean __

Re: Still another static analyzer (and LLVM parser) mistake

2010-07-12 Thread Sean McBride
Matt Neuburg (m...@tidbits.com) on 2010-07-12 20:16 said: >There's no warning if you do this: > >NSArray* arr = [NSArray arrayWithObjects: @"howdy"]; > >GCC's parser is smart enough to know that the missing nil terminator is just >asking for trouble. FWIW, there are a bunch of compiler warnings t

Re: Managing Files with CoreData

2010-07-18 Thread Sean McBride
Gordon Apple (g...@ed4u.com) on 2010-07-18 16:20 said: >Question 2: In the File class, what should I override to delete the actual >associated file when a file object is deleted from the database? (I'm >currently doing that separately when deleting the managed object.) Does >NSManagedObject's "d

Re: Initializing unichar variable with a human readable letter

2010-07-20 Thread Sean McBride
II characters are unpredictable and non-portable. That may have been the case in the past, but these days GCC assumes UTF8 unless you tell it otherwise (using -finput-charset). Using non-ASCII chars is just fine. -- ____ Sean McBride, B. Eng

Re: Unnecessary Boolean Warning

2011-08-01 Thread Sean McBride
vieIsPaused]); This warning has found several bugs (ie incorrect programmer recollection of precedence rules) in at least 2 open source projects I use. I'm glad we have it. Turn it off it offends you so. -- ________ Sean McBride, B

Re: Double-click a main window's title bar to minimize

2011-08-02 Thread Sean McBride
the setting. I doubt there's an API for that, but you could poke through ~/Library/Preferences, it should be in one of the com.apple files. Once you find they key, you can read it perhaps with the help of NSUserDefaults' addSuiteNamed:. -- _____

Re: Lion document opening: -[__NSArrayM insertObject:atIndex:]: object cannot be nil

2011-08-05 Thread Sean McBride
ed to "Resume", try turning it off from Sys Prefs or passing "-ApplePersistenceIgnoreState YES" as an argument at launch. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: NSFileManager - a cautionary tale

2011-08-05 Thread Sean McBride
ded practice to attempt things like file creation, instead of checking if it exists, in order to avoid race conditions? <http://developer.apple.com/library/mac/#documentation/Security/Conceptual/SecureCodingGuide/Articles/RaceConditions.html> -- ____

Re: Why Don't Cocoa's (Un)Archiving Methods return Errors?

2011-08-05 Thread Sean McBride
s the NSData on. That helps a little, at least for file system errors. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Filter an array

2011-08-05 Thread Sean McBride
the OP may be better dealing with extensions directly, depending. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: [Q] including omp.h?

2011-08-05 Thread Sean McBride
pple is ditching gcc for clang, and that the latter does not support OpenMP? Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Correct way to use contextInfo with ARC

2011-08-05 Thread Sean McBride
you don't really need to wait for Xcode 4.2. You can also create an Xcode plugin to run your own build of clang: <http://belkadan.com/blog/2011/07/Using-Clang-from-SVN-in-Xcode/> -- ________ Sean McBride, B. Eng s...@rogu

Re: [Q] including omp.h?

2011-08-06 Thread Sean McBride
g. I too would like to try gcc 4.7 on my code base. If for no other reason that to get some different warnings, etc. But, though I've searched a bit, it seems building gcc is a PITA, and I've not found any Mac binaries. Cheers, -- Sean McBr

Re: Xcode 4 core data mapping model not creating inherited attributes/relationships

2011-08-08 Thread Sean McBride
't create a property named 'retain'. If forget if there is a warning about this or not... if not, someone should file a bug. :) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Signing for sandboxing (was NSPersistentDocument: SQLite error 21...)

2011-08-08 Thread Sean McBride
d tell you something. I tried with my app, and hit bug after bug. In addition to limitation after limitation. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.co

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
es at the machine domain, and kCFPreferencesAnyUser lets you do this, though you'll need to use SMJobBless() to do so. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.c

Re: Core Data : User missing inverse relationship despite model settings

2011-08-08 Thread Sean McBride
in of faulting/fetching that caused awakeFrom to be somewhere on the backtrace. Ahh, here's the Radar... rdar://7361717 --- 03-Nov-2009 05:25 PM Sean McBride: The docs for awakeFromFetch warn "you should not modify relationships in this method as the inverse will not be set". De

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
.7 (and admin on 10.6). Going this root is currently forbidden by the App Store, if you care about that, ummm, thing. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Dev

Re: [Lion] IBOutlets, strong or weak?

2011-08-08 Thread Sean McBride
o WWDC11 video session 101 at 47:00, delegates and outlets should be weak. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
create:YES error:&error]; Not sure about at the CF level... you could use FSFindFolder() I guess. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: help with this error

2011-08-08 Thread Sean McBride
Is this error new in Lion? There were many permission changes there. Have you tried with a non-admin user? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-r

Re: NSCoding to/from JSON?

2011-08-09 Thread Sean McBride
ocumentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-15 Thread Sean McBride
t before/after awakeFromNib, viewDidLoad, etc.? But what about bindings? If a custom view exposes additional bindings, how can one connect them in IB? As best as I can tell, you can't. I'd love to be corrected! -- _____

Re: xCode 4 and integrated IB

2011-08-15 Thread Sean McBride
ls. Is this lost in the Xcode 4 "upgrade" too? -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-de

Re: compiling app for 10.6 and 10.7

2011-08-15 Thread Sean McBride
ire a 7 week old OS (10.6.8) as a minimum. Anyone running anything older will see a crash, and quite possibly toss your app out. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww

[JOB] Cocoa Software Developer in Montreal, Canada

2011-08-16 Thread Sean McBride
n in Montréal. To apply: - email your CV to c...@rogue-research.com Thank you, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Devel

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-16 Thread Sean McBride
plex view that exposes about 15 custom bindings. Not looking forward to adding all those programmatic bind calls. :( -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-res

Re: STAssertEquals and type-checking

2011-08-16 Thread Sean McBride
do this pretty often. We've had the same experience, and the same solution I'm afraid. :( -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Soft

Re: compiling app for 10.6 and 10.7

2011-08-17 Thread Sean McBride
I'm happy that 10.7 finally gives a beautiful message, finally fixing , and only 7 years later. :) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac

Re: Entitlements and specific files/dirs

2011-08-18 Thread Sean McBride
s. I haven't seen a way to permit access to only some hosts or only some ports. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwar

Re: Noob question about .a files

2011-08-18 Thread Sean McBride
robably a static lib. What are the warnings? > - how can i edit such files with Xcode? It shows as a >binary file (I think)? They aren't text, so you can't "edit" them. See 'man nm' and 'man otool' is you want to examine them though. -- ___

Re: Specify valid values for a Core Data attribute

2011-08-19 Thread Sean McBride
fy min and max values in your xcdatamodel. >answered then a link to that thread or even a let-me-google-it-for-you >would be helpful. You should also read about 'key value validation'. -- ________ Sean McBride, B. Eng

Re: Crash Reporter for Lion

2011-08-19 Thread Sean McBride
that? This is working well for me: <https://github.com/tcurdt/feedbackreporter> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Overriding Lion's SaveState

2011-08-23 Thread Sean McBride
ndow setRestorationClass:Nil]; [window setRestorable:NO]; [window invalidateRestorableState]; } -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: help trouble shooting...maybe with resume?

2011-08-23 Thread Sean McBride
are quite informative. -- ____ 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 (Coco

Re: Preventing lion from saving state...

2011-08-24 Thread Sean McBride
r for your document windows. But this may make your nibs not work with older tools, I'm not sure. I need to edit my nibs on 10.5, and so didn't go that route. -- Sean McBride, B. Eng s...@rogue-researc

Re: Representation of strings with special chars

2011-08-24 Thread Sean McBride
r backend expecting? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev

Re: Persistant reference to file that is not a path?

2011-08-26 Thread Sean McBride
support. :) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ C

Re: Calling -addObserver:forKeyPath: … more than once

2011-08-26 Thread Sean McBride
ey-Value Observers". -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: setTitleWithMnemonic -- warning for deprecated API .

2011-09-01 Thread Sean McBride
on. I even filed a bug but like most Radar bugs it just sits there 'open' forever. :) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com M

Re: Size of a file on disk

2011-09-01 Thread Sean McBride
d long long. But anyway, I think the URL methods are the best route. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mont

Re: Core Data Xcode 4 question

2011-09-01 Thread Sean McBride
using mogenerator to do this for you automagically. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: Core Data Xcode 4 question

2011-09-02 Thread Sean McBride
On Thu, 1 Sep 2011 17:56:43 -0400, Andrew Kinnie said: >Last I looked at mogenerator, it didn't support Xcode 4. There's no need for Xcode at all. You just point mogenerator to an .xcdatamodel file and voila! -- ____ Sean Mc

Re: KVO on objects in NSArrayController

2011-09-06 Thread Sean McBride
ast*. Unless you are using garbage collection, in which case it is an order of magnitude slower than with MRC (manual ref counting). ie horribly slow. -- ____ Sean McBride, B. Eng s...@rogue-resear

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-07 Thread Sean McBride
[window setRestorable:NO]; [window invalidateRestorableState]; } Cheers, -- Sean McBride, B. Eng s...@rogue-re

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-07 Thread Sean McBride
ence was: Quite right, sorry about that, I'm catching up on cocoa-dev and got this long thread confused with others needing to disable resume. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Proper handling of NSSavePanel and 'Do you want to replace it?' dialog

2011-09-16 Thread Sean McBride
uot;The operation couldn’t be completed. Is a directory")" What's the correct technique? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.co

Re: question about identifying old apps

2011-09-16 Thread Sean McBride
} return (conforms ? YES : NO); } -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Garbage Collection: memory limits, crash when using "lots" of memory, why?

2011-09-21 Thread Sean McBride
Delegate handleButton:] ... Surely this should not be so? Thanks for any suggestions, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develop

Re: Gestalt

2011-09-21 Thread Sean McBride
(void)Gestalt (gestaltSystemVersionMajor, &major); SInt32 minor = 0; (void)Gestalt (gestaltSystemVersionMinor, &minor); SInt32 fix = 0; (void)Gestalt (gestaltSystemVersionBugFix, &fix); Cheers, -- ______

Re: Gestalt

2011-09-21 Thread Sean McBride
*)bugFix { > > OSErr err; >SInt32 systemVersion, versionMajor, versionMinor, versionBugFix; >if ((err = Gestalt(gestaltSystemVersion, &systemVersion)) != noErr) >goto fail; As I said, don't use gestaltSystemVersion. Ever. -- ______

Re: Sandboxing and file references

2011-09-22 Thread Sean McBride
ative paths to files that the user, at some point in the past, explicitly added. Either App Sandbox is unfinished, or Apple is taking us towards of word of iFart-type apps only. -- ________ Sean McBride, B. Eng s...@rogue-researc

Re: UTI in Lion

2011-09-22 Thread Sean McBride
ack) an so there is only one UTI per extension. Thus if Xcode claims .m as Obj-C source, and Matlab claims it as Matlab source, one of those declarations will win and the other will loose. :( -- ____ Sean McBride, B. Eng

Re: Garbage Collection: memory limits, crash when using "lots" of memory, why?

2011-09-23 Thread Sean McBride
rt so it may not be up to the quality that you need for debugging >your code. Give it a try anyway: FYI, valgrind does not support Obj-C GC: <http://bugs.kde.org/show_bug.cgi?id=208215> -- Sean McBride, B. Eng

Re: Garbage Collection: memory limits, crash when using "lots" of memory, why?

2011-09-23 Thread Sean McBride
ppens in GC, not MRC. In any case, I've filed rdar://10169190 -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: UTI in Lion

2011-09-23 Thread Sean McBride
to augment the UTI system to take those into account when >determining the type of a file Yes, this would be nice, though obviously have a performance hit. If you file a bug, you can reference mine: . Cheers, -- ________ Sean McBrid

Re: Document opening in Lion

2011-09-23 Thread Sean McBride
ll say that I am in a similar situation: <http://lists.apple.com/archives/cocoa-dev/2011/Jul/msg00885.html> There were some useful replies, but my "solution" was to opt out of Resume entirely. I might try again in 10.7.biggernumber. -- ________

Re: Receiving Crash Reports

2011-09-29 Thread Sean McBride
came fe the App Store? > >I had been looking at UKCrashReporter and plcrashreporter and have not >investigarted far enough to make a decision. I found FeedbackReporter to be the best since it can also report exceptions in addition to just crashes. -- _

Re: Retain/Release and Properties clarification

2011-10-07 Thread Sean McBride
r happened to me, and would mostly be a compile-time problem. But your point about KVO is a good one! Has anyone been bit by it? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.ro

Re: Retain/Release and Properties clarification

2011-10-07 Thread Sean McBride
ting? ISO/IEC 9899:1999, Section 7.1.3, "Reserved Identifiers": "All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use." So _ + lowercase, like _myVar, is fine. -- _____

Re: -dateWithTimeIntervalSinceNow: 64-bits may overflow

2011-10-12 Thread Sean McBride
d you use FLT_MAX and not DBL_MAX? No doubt the latter would be even worse. :) -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec,

Re: Custom NSView drawing

2011-10-28 Thread Sean McBride
plugins? You might want to not bother with the whole thing. :( -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Future for Mac applications

2011-10-31 Thread Sean McBride
d >sandboxing are orthogonal technologies, and sandboxing clearly hasn't >been nailed down yet. It's also worth remembering that the Mac App Store is not required either, unlike on iOS devices. If you can't or don't want to sandbox, you can distribute elsewhere. -- _

Re: Custom NSView drawing

2011-10-31 Thread Sean McBride
.2. It's not coming back. Time to move on. (I'm as unhappy as anyone, but it's time to be realistic: for whatever reason, Apple does not want this feature.) -- ________ Sean McBride, B. Eng

Re: Sandboxing question

2011-11-01 Thread Sean McBride
lopers crash logs. Even using asl APIs to read logs does not work in the sandbox. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Write to file Entitlement

2011-11-02 Thread Sean McBride
again not eating their own dog food. Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: How do we get rid of "application downloaded from the internet" warnings?

2011-11-02 Thread Sean McBride
a dialog needs to be presented, we do so for one item of the 'highest' risk class in the open list, and discard the rest. We are considering alternative ways to do this, but at present this is expected behavior. -- ____ Se

Re: Private Method?

2011-11-08 Thread Sean McBride
lementation details from those reading your public header files. Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Thread safety of NSTreeNode?

2011-11-15 Thread Sean McBride
ead, where thereafter only the main thread will use the instance. From my reading of the general 'Thread Safety Summary' wrt mutable objects, I think this should be safe... but I'd appreciate begin corrected... Thanks, -- ____

Re: UTI not being imported?

2011-12-06 Thread Sean McBride
. Check /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist to see if you are trying to override an extension the system already knows about, then remove those from yours and try again. -- ________ Sean McBride, B. Eng

Re: "byte orders" question

2011-12-08 Thread Sean McBride
ions), you see everyone doing it, but it's illegal. The union strategy is dubious too, but in practice safer. Looking in NSByteOrder.h you see it is the technique used by NSSwapBigDoubleToHost() and variants. Cheers, -- Sean McB

Re: Locks

2011-12-08 Thread Sean McBride
g/friday-qa-2009-07-03-type-specifiers-in-c-part-2.html> <http://mikeash.com/pyblog/friday-qa-2009-07-10-type-specifiers-in-c-part-3.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Formatter for angle display?

2012-01-17 Thread Sean McBride
and pretty straightforward. -- ________ 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@l

Re: Formatter for angle display?

2012-01-17 Thread Sean McBride
, but in 4 it seems less likely. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-20 Thread Sean McBride
all is OK. >If instead I click and drag I get the error multiple times. So where did I >go wrong? In my GC app, I haven't seen this, but am having various problems with NSOpenPanel... half the time, it shows nothing. -- ____ Sean McB

Re: auto malloc[27012]: attempted to remove unregistered weak referrer

2012-01-21 Thread Sean McBride
10.7: NSOpenPanel is often hopelessly unresponsive Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

<    1   2   3   4   5   6   7   8   9   10   >