Re: vForce Performance

2012-01-24 Thread Sean McBride
appointing. I think the perfoptimization-dev list would be better: -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mont

Re: - (NSPoint)convertBaseToScreen:(NSPoint)point

2012-01-31 Thread Sean McBride
ly mark the declaration with NS_DEPRECATED (so that the compiler can warn you if you use them.) :( -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwar

Re: PDFView focus ring

2012-02-02 Thread Sean McBride
awing easier. See: <http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html> I've been experimenting with it, and it works great, though I have seen it frequently appear as an offender when profiling with Instruments. -- ____

Re: Sandbox, 10.6, Core Duo, XCode 4.... where is the entitlement page?

2012-02-07 Thread Sean McBride
s talk about this even. -- ________ 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 (Coc

NSEvent locationInWindow undefined for non-mouse events, how to catch?

2012-02-13 Thread Sean McBride
me catch such incorrect usage? I've searched but not found... Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?

2012-02-15 Thread Sean McBride
t;yes", I've assumed it's "no" and filed with the suggestion. In the meantime, I'll create a category method that wraps locationInWindow and delegates to mouseLocation or similar otherwise. Thanks to all who replied, --

Re: NSEvent locationInWindow undefined for non-mouse events, how to catch?

2012-02-15 Thread Sean McBride
that locationInWindow be implemented like this: - (NSPoint)locationInWindow { if (NSDebugEnabled) { NSEventType type = [self type]; assert ((type == NSLeftMouseDown) || ... ); } ... } -- ____ Sean McBride, B. Eng

Re: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-15 Thread Sean McBride
onQueue is available on 10.5, and GCD is not. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software De

Re: Sandbox - Security Scoped URLs (10.7.3)

2012-02-16 Thread Sean McBride
No surprises here. (And it's the risk you take leaving your product's distribution in the hands of a 3rd party, ie Apple). -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?

2012-02-22 Thread Sean McBride
... if it works reasonably these days... -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québe

Re: What to use instead of operatingSystemVersionString

2012-02-24 Thread Sean McBride
)Gestalt (gestaltSystemVersionBugFix, &fix); -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

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

2012-02-24 Thread Sean McBride
I encourage you to file bugs on this, or maybe add a comment here: <http://llvm.org/bugs/show_bug.cgi?id=9194> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-r

Suggestions for forcing NSSlider to some values, without tickmarks

2012-03-01 Thread Sean McBride
ou suggest accomplishing this? (In the past, I cheated and forced the slider to be an even number of pixels long, which did the job. This fragile solution broke in 10.7.) Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research

Re: Suggestions for forcing NSSlider to some values, without tickmarks

2012-03-01 Thread Sean McBride
erwise it will be >impossible to set values very close to 0, such as 1. Good idea, though not crucial in my use case. Any suggested subclassing points? That's where I'm stuck really... -- ____ Sean McB

Re: Accessing array in thread safe way

2012-03-07 Thread Sean McBride
;https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Releasing WSMethodInvocationInvoke()

2012-03-07 Thread Sean McBride
Apple >updates the headers in the next release. > >(Another example of this is SecTransformExecute in Securty.framework) You sure about SecTransformExecute? Its docs don't say anything about needing to CFRelease the return value... -- _____

Re: Custom Accessors in Core Data

2011-02-02 Thread Sean McBride
value), and implement my own accessors for it, using >the primitive value and the proper KVO? > >I wish CoreData had ways to automatically handle this. Use mogenerator. It creates scalar accessors for you: <http://rentzsch.github.com/mogenerator/> -- __

Re: 10.6 Snow Leopard API for blocking screensaver/idle?

2011-02-14 Thread Sean McBride
the idle counter.) For some reason I >thought there might have been a new API for this, but I can't find it. Eric, Are you thinking of setPresentationOptions: and NSApplicationPresentationOptions? -- ____ Sean McBride, B. Eng

Re: Tracking a EXC_BAD_ACCESS when zombies don't work

2011-02-15 Thread Sean McBride
nce: Have you read: <http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html> specifically the CFZombie stuff? and <http://sealiesoftware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html> Might help... --

Re: Tracking a EXC_BAD_ACCESS when zombies don't work

2011-02-16 Thread Sean McBride
On Wed, 16 Feb 2011 11:17:27 -0800, Keith Blount said: >The debugging continues... You could try valgrind too: <http://valgrind.org/info/about.html> It works decently on Mac OS now (though no Obj-C GC support still)... --

Re: Determine if other process is running 32 or 64 bits

2011-02-16 Thread Sean McBride
tion. NSRunningApplication executableArchitecture -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?

2011-02-21 Thread Sean McBride
ble", and indeed I don't see any method like bitmapData. :( -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec

Re: exception when I try to access a managedObject property from within an accessor of another property

2011-02-21 Thread Sean McBride
ypted"]; then po foo in gdb -- ________ 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: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Sean McBride
of your Obj-C .h files like so: #ifdef __cplusplus typedef SomeCPPClassPtr SomeCPPClassRef; #else typedef void* SomeCPPClassRef; #endif hth, -- ________ Sean McBride, B. Eng s...@rogue-research.co

Re: Help Mixing Objective-C & Objective-C++

2011-02-23 Thread Sean McBride
- nonfragile-abi2 and: <http://www.mcubedsw.com/blog/index.php/site/comments/new_objective- c_features/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com M

Re: Help Mixing Objective-C & Objective-C++

2011-02-25 Thread Sean McBride
lation speed (as you said), there are subtle incompatibilities between C and C++, and you'll loose/gain a few compiler warnings that are C-only or C++-only. -- ____ Sean McBride, B. Eng s...@rogue-resear

Re: Help Mixing Objective-C & Objective-C++

2011-02-25 Thread Sean McBride
7;t do this. : ( What version of clang is needed? Is Xcode 4 the min requirement, or could I still build my code with 3.2.5? Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Books covering iOS security issues

2011-03-16 Thread Sean McBride
7;re likely working in a C-based language, this could be educational: <https://www.securecoding.cert.org/confluence/display/seccode/CERT+C +Secure+Coding+Standard> -- ____ Sean McBride, B. Eng s...@rogue-re

Re: crash in initWithCoder

2011-03-16 Thread Sean McBride
entirety. <http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html> All the bits about memory management should help you debug this. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: copyPath:toPath:handler: more reliable than copyItemAtPath:toPath:error: ???

2011-03-25 Thread Sean McBride
any not very wise. Maybe you're seeing a weirdo threading bug, what if you try everything on the main thread? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-res

Re: Help with Custom Control

2011-03-25 Thread Sean McBride
;yet"? Why do you think they are coming back? They've been gone since the first Xcode 4 seed and the Xcode 4.0.1 read me says they are deprecated. (Which, of course, totally sucks!) -- ________ Sean McBride, B. Eng

Re: Hash Values in Custom Classes

2011-03-28 Thread Sean McBride
mpare the objects' classes. Are you aware that starting in 10.6, the OS provides 'file reference URLs' which are much like FSRefs. See: <http://developer.apple.com/library/mac/#releasenotes/Cocoa/Foundation.html> -- _______

Re: UI Panel With "Pointer" On One Side

2011-03-29 Thread Sean McBride
ere: <http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/ Introduction/Intro.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac So

Binding tablecolumn to attribute of specific object in to-many relationship?

2011-03-29 Thread Sean McBride
optional transient to-one relationship to Department named 'employeeId0' and binding the tablecolumn to departmentsArrayController>arrangedObjects>employeeId0>name, but maybe I'm barking up the wrong tree Thanks, -- ___

Re: why I got wrong arguments from command-line

2011-03-30 Thread Sean McBride
psn is the Carbon Process Manager's 'process serial number', similar to a UNIX pid. See the docs for ProcessInformationCopyDictionary () for example. -- Sean McBride, B. Eng s...@rogue-res

Re: Binding tablecolumn to attribute of specific object in to-many relationship?

2011-03-30 Thread Sean McBride
On Tue, 29 Mar 2011 18:15:28 -0700, Quincey Morris said: >On Mar 29, 2011, at 14:57, Sean McBride wrote: > >> I've considered adding a optional transient to-one relationship to >> Department named 'employeeId0' and binding the tablecolumn to >> dep

Re: constructor cannot be overloaded?

2011-03-31 Thread Sean McBride
builds (assuming you still support 32-bit with this project). But beware that NS_BUILD_32_LIKE_64 also changes the size of NSInteger in 32bit, which may or may not cause you problems. -- ________ Sean McBride, B. Eng s...@rogue-r

Re: constructor cannot be overloaded?

2011-03-31 Thread Sean McBride
cause problems if you're >doing something that requires strict type checking, but otherwise, it >should just work. Quite right. That's what I meant. :) -- Sean McBride, B. Eng s...@rogue-research.com Rogu

Re: Binding tablecolumn to attribute of specific object in to-many relationship?

2011-03-31 Thread Sean McBride
If I'm deleted? If the delete is undone, do I start observing again? And redo? For these reasons I tend to prefer overriding relationship setters/ mutators and updating my caches/transients there. In this case, by implementing addEmployeesObject: and removeEmployeesObject: to set/clear my dep

Re: Are the progress spinner images publically available?

2011-04-07 Thread Sean McBride
in a custom NSControl/NSCell to draw a slider with two thumbs. Works great, and the appearance remains correct with each new OS. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-07 Thread Sean McBride
t all and use NSURLs instead. In that case you'd use URLF orDirectory:inDomain:appropriateForURL:create:error: instead of NSSearchPathForDirectoriesInDomains(). -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: diable localization

2011-04-07 Thread Sean McBride
or set the argument/default inside the main function before >calling NSApplicationMain In Xcode, you can also pass -AppleLanguages as an argument to your executable. This lets you debug in any language, regardless of your preferred languages in System Prefs. -- ____

Re: isDeletableFileAtPath: returns YES for locked files???

2011-04-14 Thread Sean McBride
d to race conditions. The file may be unlocked when you check, but then locked right after, but before you delete. See: <http://developer.apple.com/library/mac/#documentation/Security/ Conceptual/SecureCodingGuide/Articles/RaceConditions.html> -- _____

dealing with alias files, finding URL to target file

2011-04-15 Thread Sean McBride
lve alias files (not that their docs say they should, but I'm experimenting). The only choice I see is using getResourceValue:forKey:error: and NSURLIsAliasFileKey then using all the bookmark APIs. Blah. Am I missing something? Thanks, -- _

Re: dealing with alias files, finding URL to target file

2011-04-15 Thread Sean McBride
was hoping I missed something but I guess not. Cheers! -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: dealing with alias files, finding URL to target file

2011-04-15 Thread Sean McBride
but does let you create aliases. It seems to me the symlink case should be the convoluted case. But, as you say, category methods are a nice thing to have! Thanks, -- Sean McBride, B. Eng s...@rogue-research.com Rogu

Re: renaming directories and moving files into them (NSFileManager)

2011-04-15 Thread Sean McBride
so, better to test the file's UTI, not its extension. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montré

Re: dealing with alias files, finding URL to target file

2011-04-15 Thread Sean McBride
;If an error prevents reading the data" part suggests your suggestion may be safe. Not sure. Thanks for the suggestion though! -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchw

Dynamic UTIs and 10.6 NSPasteboard APIs

2011-04-18 Thread Sean McBride
ome files are getting 'dynamic UTIs', ex: $ mdls -name kMDItemContentType /path/to/file.ext kMDItemContentType = "dyn.ah62d4rv4ge81a5d3" What gives? Why do some files get these dynamic UTIs? Is NSPasteboardURLReadingContentsConformToTypesKey therefore useless? Thanks, -- _

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-27 Thread Sean McBride
eate:error:. Kevin, are you trying to create an alias record or an alias file? -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréa

Re: CoreData: "Could not fulfill a fault", but only sometimes …

2011-04-27 Thread Sean McBride
don't use GC)? Our app is garbage collected. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: BSD TCP Programming on iPad

2011-04-27 Thread Sean McBride
. You might look at the open source CocoaAsyncSocket, including the GCD version: <http://code.google.com/p/cocoaasyncsocket/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-28 Thread Sean McBride
7;alias' persists in the UI, and the term 'bookmark' is already overloaded). Rant over. :) -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-28 Thread Sean McBride
>is the name of the alias file that writeToFile needs, >apparently stringing fromPath of the method it's wrapped around. I think Quincey is right, which is probably why the beginning of the example calls and prints the result of getcwd(). -- ________

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-28 Thread Sean McBride
h. I've fixed that in git. -- ________ 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-

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-29 Thread Sean McBride
right. >and could be given a NULL value (at >least in fromFile). Of course my fuzziness on 'relative search' may stem >from my complete non-understanding of 'alias records'. It's all quite >overwhelming really. Using null is typical I'd say. -- _

Re: delete entries in a tableView with the backspace-key on the keyboard

2011-04-29 Thread Sean McBride
-button. > >How can I link this action (pressing the backspace key on the keyboard) >to the delete-method? See: <http://lists.apple.com/archives/cocoa-dev/2010/Apr/msg01044.html> -- ________ Sean McBride, B. Eng

Re: NSOperationQueue and Synchronization Control

2011-05-06 Thread Sean McBride
Concurrency Programming Guide" and "Threading Programming Guide"? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com

No more .ibplugins in Xcode 4, so now what...?

2011-05-13 Thread Sean McBride
ning... 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@

Re: No more .ibplugins in Xcode 4, so now what...?

2011-05-13 Thread Sean McBride
ort that Xcode 4 should support plugins. > >On 2011-05-13, at 10:48 AM, Sean McBride wrote: > >> Hi all, >> >> So now that Xcode 4 has deprecated .ibplugins, what are those of us that >> make use of them going to do instead? >> >> (Yes, I know I can still

Re: No more .ibplugins in Xcode 4, so now what...?

2011-05-13 Thread Sean McBride
lly >multiple KVO observations that need to be made. But often times that's >done more simply with a regular property. I have found bindings very helpful for supporting undo, as model changes are automagically updated in the UI. But sometimes they are a PITA. :) --

Re: No more .ibplugins in Xcode 4, so now what...?

2011-05-13 Thread Sean McBride
ery minor technical problem. Starting with 10.6 (IIRC) System Preference plugins went from non-GC to requiring GC. It wasn't a major transition. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: No more .ibplugins in Xcode 4, so now what...?

2011-05-13 Thread Sean McBride
, my code is GC-only and 64 bit only. I had to go backwards and make it support non-GC to get my ibplugin working.) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.r

Re: "Use them from only one thread at a time"

2011-05-19 Thread Sean McBride
d >which allocated it." I believe so. See also: <http://www.mikeash.com/pyblog/friday-qa-2009-01-09.html> -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-resea

Re: "Use them from only one thread at a time"

2011-05-19 Thread Sean McBride
On Thu, 19 May 2011 14:31:23 -0700, Quincey Morris said: >On May 19, 2011, at 13:56, Sean McBride wrote: > >>> Would it be correct to restate it >>> like this… >>> >>> "In most cases, although you can allocate instances of these classes on >>&

Re: "Use them from only one thread at a time"

2011-05-19 Thread Sean McBride
anular categorizations is really needed, and apparently lacking. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Can't create temporary file

2011-05-20 Thread Sean McBride
one must always check BOTH the .h and the docs, as neither says what the other says. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Properly comparing file NSURLs for equality?

2011-05-27 Thread Sean McBride
s to isEqualToString, isEqualToSet, etc. I wonder why...) Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mont

Re: Properly comparing file NSURLs for equality?

2011-05-27 Thread Sean McBride
On May 27, 2011, at 19:57, Douglas Davidson wrote: >> If you were going to compare FSRefs (FSCompareFSRefs), you wouldn't need to >> convert to a path, just use CFURLGetFSRef via toll-free bridging. > > It shouldn't be necessary to go to FSRefs for this now that we have resource > properties su

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread Sean McBride
he Apple- provided gcc 4.2, where it has a different meaning and is largely useless (fixed in newer gcc). -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: NSOpenPanel not honoring some settings

2011-06-01 Thread Sean McBride
deprecated in docs/comments, but don't actually tag them so the compiler can warn. I guess they're trying to reduce noise. If so, might be nice to have 2 levels of deprecation warnings: really old, and soon-to-be-old. :) -- ________ Sean

Re: Code style (was: Notify With Parameters)

2011-06-02 Thread Sean McBride
dit > Format > Re-Indent. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Copying files with authorization; best choice?

2011-06-15 Thread Sean McBride
cated, but reading between the lines it seems AEWP is discouraged. Anyone tried both? Any advice? Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com

Re: Coalesced updates and refresh rate

2011-06-15 Thread Sean McBride
veloper.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Soft

Re: How to get the code responsible for high CPU utilization

2011-06-16 Thread Sean McBride
.com/library/mac/#documentation/DeveloperTools/Conceptual/InstrumentsUserGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004652-CH1-SW1> Cheers, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researc

Re: Custom NSCell and Bindings

2011-06-28 Thread Sean McBride
ically, you can't. :( The table column has only one value binding, so can only be bound to one thing, not many. You could change your model to have one property that is an amalgamation of your title, subtitle, and image and bind to that. -- _________

Re: NSDatePicker weirdness with time.

2011-07-07 Thread Sean McBride
O 8601, regardless of user preference. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec,

Lion's new "Resume" feature, document restoration, and splash screens

2011-07-27 Thread Sean McBride
considered too.) Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-de

Re: Lion's new "Resume" feature, document restoration, and splash screens

2011-07-27 Thread Sean McBride
On Jul 27, 2011, at 19:39, Dave Fernandes wrote: > License agreements are still a necessity. This seems to be what the OP is > asking about, and not simply a marketing splash screen. Thanks for the on-topic reply! (Sad that even though I anticipated the 'don't do that comments', they still cam

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Sean McBride
eSelectedCellOfColumnIdentifier:@"bar"]; hth, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Re: What to subclass in NSArrayController to enable immediate editing of added rows?

2009-12-01 Thread Sean McBride
True, you copy-paste that line everywhere, but oh well. >Also, the scrollRowToVisible call is superfluous, since the >editColumn:row:withEvent:select: method is documented to do the >scrolling for you already. So it is..., thanks. The scrolling code predates by auto editing code. -- _____

libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Sean McBride
hows "real" at 2.2 GB and "Virtual" at 200 MB. My physical memory is not even exhausted. Googling the message yields next to nothing. Thanks, -- ________ Sean McBride, B. Eng s...@rog

Re: libauto: what's "agc error: Can not allocate new region"

2009-12-02 Thread Sean McBride
As I understand it, the former applies to memory in the GC zone, the latter to the malloc zone. In my app anyway, AUTO_USE_GUARDS is slow, GuardMalloc is slower, and with them both on it's very slow indeed. -- ____ Sean McBri

Core Data: insertNewObjectForEntityForName doesn't return my custom subclass during migration

2009-12-03 Thread Sean McBride
[NSMigrationManager(InternalMethods) _doSecondPassForMapping:error:] -[NSMigrationManager migrateStoreFrom URL:type:options:withMappingModel:toD estinationURL:destinationType:destinationOptions:error:] ... Is this expected? Thanks, -- ________ Sea

Re: Debugging stack traces

2009-12-03 Thread Sean McBride
l: <http://www.softedge.se/Softedge/dSymbolizer.html> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develo

NSSlider's setAltIncrementValue: broken?

2009-12-03 Thread Sean McBride
27;s not a very discoverable UI). Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-03 Thread Sean McBride
tion of function 'PerformXPathQuery' "//mynode" is not an NSString. You want @"//mynode". The @ makes it an NSString. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researc

Re: NSSlider's setAltIncrementValue: broken?

2009-12-04 Thread Sean McBride
7;s off to Radar. :) Thanks for your replies Gregory and Matt. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ C

Re: Fwd: nscalendardate with 10.4

2009-12-08 Thread Sean McBride
Date,selectDate,counter); >> NSCalendarDate *tempDate = [selectDate dateByAddingYears:0 months:0 >> days: -counter hours:0 minutes:0 seconds:0]; Sissy, NSInteger is just a typedef and it's only used in the 10.5 and later SDKs. But you can use the 10.5 SDK and still support 1

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Sean McBride
If so, they should live as long as 'self' does. Do you use the 'bytes' method? Are you aware of the issues with it under GC? -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com

Re: odd problems with NSData / OpenGL

2009-12-08 Thread Sean McBride
On 12/9/09 2:25 AM, Henri Häkkinen said: >On Dec 9, 2009, at 2:05 AM, Sean McBride wrote: >> >> And these are ivars I guess? If so, they should live as long as >'self' does. > >Yes, they are ivars. > >I was able to resolve the issue by adding invoc

Re: Finding process path from Cocoa?

2009-12-09 Thread Sean McBride
or the Process Manager, which was the only way to do some things that NSWorkspace could not (in 10.5 and earlier). Process Manager will list background only apps, unlike NSWorkspace. -- ________ Sean McBride, B. Eng s...@rogue-rese

Re: Finding process path from Cocoa?

2009-12-10 Thread Sean McBride
ill holes in the Cocoa APIs and minimize 'impedance mismatch'. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: Crash when 'open POSIX file /..' from AppleScript

2009-12-14 Thread Sean McBride
signal EXC_BAD_ACCESS here This works in my NSPersistentDocument-based app. Like you, I have no particular AppleScript support. Have you tried with a fresh app built from stationary? -- ________ Sean McBride, B. Eng

Re: Sorted Table Column

2009-12-15 Thread Sean McBride
localizedStandardCompare:, if you support 10.6+) then in my windowcontroller's awakeFromNib I set the arraycontroller's sort descriptor by fetching the tableview's. -- Sean McBride, B. Eng s...@rogue

Re: Wierd Crash Report

2009-12-15 Thread Sean McBride
t requires native execution, or something like this >could happen on application startup. The key is LSRequiresNativeExecution BTW. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.ro

Re: memcpy with 64 bit

2009-12-15 Thread Sean McBride
would think one place that using NewHandle() is still the best idea is when an API requires a handle. This is the case for many QuickTime APIs, and the OP did mention using QuickTime. Another would be the Alias Manager. -- ________ Sean McBrid

Re: Cannot use malloc debug

2009-12-16 Thread Sean McBride
ar to me that MallocDebug is dead. Have you tried Instruments? Also, this would probably be better on the xcode list. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-researc

Re: Call Cocoa from C++

2009-12-17 Thread Sean McBride
ning that objcptr may not >respond to updateText, which you can eliminate by casting objcptr to the >appropriate class. If you are using Cocoa Garbage Collection, be very careful doing this. IIRC, you loose the automatic 'strongness' and will probably have to add __strong or CFRetain/

Re: Dependent values that are not iVars

2009-12-18 Thread Sean McBride
&kContext1 as the context. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Coco

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