Re: In dealloc(): ref @property, Can I use " = nil; " vs "[ release]; " ?

2008-10-08 Thread Sean McBride
may. What about awakeFromInsert/awakeFromFetch? If my entity has an attribute named 'firstName', should I use the (magically pre-existing) method setFirstName: or should I use setPrimitiveValue:forKey:? Cheers, -- ________ Sean McBride, B.

Re: Where is close/cancel icon used in search field & Safari etc.

2008-10-09 Thread Sean McBride
On 10/9/08 10:10 AM, Gerriet M. Denkmann said: >Is there somewhere a list (human readable or programmatically >accessable) of names understood by +[ NSImage imageNamed:]? See also NSImage.h -- ____ Sean McBride,

Re: NSView enterFullScreenMode:withOptions: Transition

2008-10-09 Thread Sean McBride
checked the docs are out of sync with reality. For example, the NSFullScreenModeWindowLevel option is also ignored. If you need anything more that trivial full screen support, I'd stay away from this API. see the archives for more on why. --

Re: NSNull and @""

2008-10-11 Thread Sean McBride
Array (on 10.5+). -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Not so long filenames

2008-10-14 Thread Sean McBride
]; Are you trying to create a constant NSString with UTF8 characters in your source? Is that what all the '?' chars are? You can only do that in 10.5. -- Sean McBride, B. Eng

Re: table bindings, value transformer per row?

2008-10-16 Thread Sean McBride
lumns, but rows are expected to show the same data as other rows. -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montr

Properly supporting 'delete' key presses in NSTableView

2008-10-20 Thread Sean McBride
lf interpretKeyEvents:[NSArray arrayWithObject:event]]; } else { [super keyDown:event]; } } Thanks for any suggestions, -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: Properly supporting 'delete' key presses in NSTableView

2008-10-20 Thread Sean McBride
s, if I may: - so will this actually work with custom keybindings? Or is there just no good way to support that? - did I miss a constant for the backward delete char (an analogue to NSDeleteCharacter)? I'm using 0xf728, discovered via gdb. :( Cheers, -- _

Re: Properly supporting 'delete' key presses in NSTableView

2008-10-21 Thread Sean McBride
f tableviews, it seems nicer to subclass and fix NSTableView, then just use your subclass everywhere. I guess the best solution always depends on one's situation. Thanks to all, -- ____ Sean McBride, B. Eng [EMAIL PROTE

Re: @property and HeaderDoc

2008-10-21 Thread Sean McBride
ation itself. It is my impression that few people are still using HeaderDoc. doxygen supports Obj-C 2 @property declarations. -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-rese

Re: Core data one-to-many: how to set relationship for newly added 'many' objects?

2008-10-22 Thread Sean McBride
Jerry Krinock ([EMAIL PROTECTED]) on 2008-10-22 8:31 PM said: >> A basic question: >> I have a Core Data model which has a one-to-many relationship, say >> one Department and several Employees. > >> When an Employee is added using the 'add' button of the standard >> interface, how can I set the re

Re: CGPoint wrapper?

2008-10-23 Thread Sean McBride
eak strict-aliasing rules Alas, it's not feasible to have this option on in a real-world Cocoa program, since gcc will also warn just about anywhere you use 'super', ex: 'self = [super init]'. :( -- ________ Sean McB

Re: Unregistered weak referrer

2008-10-23 Thread Sean McBride
om/technotes/tn2004/tn2124.html> -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Mo

Re: No warning on float to int assignment?

2008-10-24 Thread Sean McBride
on to warn is that information is lost. CodeWarrior has 2 independent warnings for this: float to integer and integer to float. I've looked, but I don't think gcc has this. -- Sean McBride, B. Eng [EM

Re: ASL & Unicode in Xcode's Console

2008-10-28 Thread Sean McBride
>NSLog(@"%@", [NSString stringWithCString:a >encoding:NSUTF8StringEncoding]); That is no longer necessary in 10.5 / Xcode 3. You can use Unicode in string literals in Objective-C. -- ________ Sean McBride, B. Eng

Re: ASL & Unicode in Xcode's Console

2008-10-29 Thread Sean McBride
t;strings all specifically say that string >literals (CFStringRef, NSConstantString and c style string constants) >all must be 7-bit ascii encoded Please file a bug against the docs. -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: How to show Interface Builder's build warning and messages?

2008-10-29 Thread Sean McBride
the build results. > >How do I re-show these messages again in IB? > >I tried to click "Info" for the XIB in IB, but the list is empty. This would be better on the Xcode list, but... Have you looked at IB's Preferences > Alerts? -- ______

Re: file references in CoreData

2008-10-29 Thread Sean McBride
et/bDistributed.com/index.html Another option is NDAlias: <http://homepage.mac.com/nathan_day/pages/source.xml> Last I checked, BDAlias does not support garbage collection and 64bit, which NDAlias does. -- ________ Sean McBride, B. Eng

Re: file references in CoreData

2008-10-29 Thread Sean McBride
g >header problem, please submit a patch to the author so we can all >benefit. We have submitted such a patch, but the author is busy of late, though I'm confident he'll eventually incorporate it. In the meantime, I suggest you import NDAlias.h into your prefix header, that way yo

Re: detecting an option-click on a button

2008-10-31 Thread Sean McBride
; } >} That's the correct approach. But you want & not &&. -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Soft

Re: When and how often do you mix C++ with Objective C in your project?

2008-11-03 Thread Sean McBride
mple, one must be sure that the C++ dtors are threadsafe. -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québe

Re: Porting SetupComm function in Mac

2008-11-03 Thread Sean McBride
rmless.de/cocoa-code.php> -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Qu

Forcing garbage collection, freeing up memory, thrashing

2008-11-04 Thread Sean McBride
so it's ok.) Thanks, -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Forcing garbage collection, freeing up memory, thrashing

2008-11-04 Thread Sean McBride
ruments, though I haven't had much luck with it in the past, since it's a 32bit app, it runs out of memory pretty fast and crashes. :) Any other thoughts? Thanks, -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: Core Data and NSNumber values

2008-11-07 Thread Sean McBride
.com/code/mogenerator> -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Crash in NSFileManager

2008-11-08 Thread Sean McBride
David ([EMAIL PROTECTED]) on 2008-11-8 2:57 PM said: >I'm trying to understand a crash log a customer sent me. Have you read: >This is a universal application using GC on Leopard. If I'm reading it >correctly, it looks like the applicatio

Re: Core Data entity fetching by date

2008-11-10 Thread Sean McBride
endar, that might not be a problem, but it's something to consider. Something else to think about: perhaps instead of storing an NSDate in your model, you could store an NSDateComponents (using a 'transformable'). -- _____

Re: Observing NSArrayController selectionIndex always returns null

2008-11-10 Thread Sean McBride
e "(Missing) KVO notification old and new values" at: <http://homepage.mac.com/mmalc/CocoaExamples/controllers.html> And please file a radar. -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Research

Re: CoreData - Multiple Model Files?

2008-11-12 Thread Sean McBride
;d just bite the bullet for now, when your model is in flux at the beginning of design in sucks, but your model will stabilise eventually. Do file a bug requesting that the .xcdatamodel become text (just like the nib -> xib change), and mergeable text at that (unlike .xib). -- ____

Re: How do you get the OS X version number in C or C++?

2008-11-14 Thread Sean McBride
emVersion. See Gestalt.h for why. -- ____ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: How do you get the OS X version number in C or C++?

2008-11-14 Thread Sean McBride
very top, you'll see: Framework CoreServices/CoreServices.h That's what you need to include, and that's which framework you should link to. -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Resea

Re: How do you get the OS X version number in C or C++?

2008-11-20 Thread Sean McBride
as in this case, then it works just >fine. Well, true enough, but I think my recommendation is still a good idea, for reasons of style and maintainability. Someday someone else may need to change that code. If one day 10.5.11 is required the codechange is less straightforward and more

Re: Which Mac models use the new 64-bit Objective-C ABI?

2008-11-26 Thread Sean McBride
. Thread Viewer.app doesn't support 64bit apps at all, Xcode/gdb have great difficulty with simple debugging in 64bit, Shark sometimes doesn't show symbols in 64bit apps, etc., etc. -- ________ Sean McBride, B. Eng

Problems with custom handling of open AppleEvent

2008-12-02 Thread Sean McBride
em to be a way to get the current handler, for me to delegate to. I hope I'm missing something easy... Cheers, -- ________ Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-resea

Re: Programmatically loading an NSImage via other field

2008-12-03 Thread Sean McBride
[EMAIL PROTECTED] ([EMAIL PROTECTED]) on 2008-12-03 10:23 PM said: >I'm struggling with how to load an image into an NSImage via another >field's value. > >I have a field that contains a path & name of an image file. The user >can type it in or select it via OpenFile sheet. This works just fine

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Sean McBride
Chris Idou ([EMAIL PROTECTED]) on 2008-12-03 10:44 PM said: >I want to have a separate thread in my app which does time consuming >things. I want to assign tasks to this thread using performSelector:onThread. > >Now you can't have a runloop with no input sources, or it exits >immediately. So how d

How to display simple dialog at application startup?

2008-12-03 Thread Sean McBride
Hi all, From the 'should be easy department'... :) I'd like my app to (sometimes) display a modal dialog at launch. It should appear before anything else, and no other interaction should be possible until it is dismissed. Something like the licence agreement each new version of iTunes makes you

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Sean McBride
Chris Idou ([EMAIL PROTECTED]) on 2008-12-03 11:00 PM said: >> how will you eventually make it shut down even if you do >> do that, or will it just hang out there until the application >> terminates? > >Good question. I had assumed that something like >[myThread performSelector:@selector(exit) onT

Re: Custom Window Resize Image

2008-12-04 Thread Sean McBride
Ron Fleckner ([EMAIL PROTECTED]) on 2008-12-04 12:52 AM said: >> Hello, I'm writing a custom window for my application, but I can't >> figure out how to make a custom resize image... Any help? >> >> Thanks, >> Mr. Gecko > >Unless you actually want a 'custom' resize image, you can use the real >one

Re: commitEditing and unrecognized selector

2008-12-09 Thread Sean McBride
On 2008-Dec-9, at 18:53, Chris Idou wrote: I've got a modal dialog with a couple of NSTextFields. Changes weren't getting saved, so I thought I'd better call commitEditing on the text field before retrieving its value with stringValue. But when I call commitEditing on the NSTextField it giv

Re: Symbol not found error

2008-12-09 Thread Sean McBride
Daniel Luis dos Santos ([EMAIL PROTECTED]) on 2008-12-10 7:38 PM said: >I am getting this error over and over again, whenever I do a new >target in some place and then try to use it somewhere else. >I have a dynamic library in a project that is used in another project. >Then I added another dynam

Re: How Can I Notify DrawRect Method?

2008-12-09 Thread Sean McBride
I. Savant ([EMAIL PROTECTED]) on 2008-12-09 8:25 PM said: > Asking for the shared user defaults instance, then asking it for a >value, then unarchiving a more useful object from it, *then* using it >to draw is certainly more work than caching the value only when it >changes. It's not like it's p

Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?

2008-12-09 Thread Sean McBride
Jerry Krinock ([EMAIL PROTECTED]) on 2008-12-09 10:13 PM said: >[2] Steps to Reproduce > >1. Download Apple's AbstractTree sample code project: > http://developer.apple.com/samplecode/AbstractTree/AbstractTree.zip >2. Doubleclick AbstractTree/AbstractTree/AbstractTree.xcodeproj >3. Just

Re: Starting Cocoa apps from the command line

2008-12-10 Thread Sean McBride
On 2008-Dec-10, at 16:47, Shayne Wissler wrote: Is there a way to do this without making some kind of wrapper caller that generates the directory and a script or some such? Or is it wholly frowned upon to do what I'm wanting, and if so, why does it half-work rather than fail with a decent error

Re: float from NSData

2009-03-03 Thread Sean McBride
Not sure if I'm understanding correctly... but just use the 'bytes' method of NSData to get the data, it returns a void* which in your case is a float*. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: float from NSData

2009-03-03 Thread Sean McBride
long is either 32 or 64 depending, so... -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer M

Re: float from NSData

2009-03-03 Thread Sean McBride
ve checked the headers too!) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: float from NSData

2009-03-03 Thread Sean McBride
On 3/3/09 11:51 AM, Jay Kickliter said: >That's what I'm doing. But don't understand how to get the 4 bytes I >have in NSData into a float variable. NDData* data = ... const float* bytes = [data bytes]; float value = bytes[0]; --

Re: NSDocumentController Problem

2009-03-03 Thread Sean McBride
take if you add "-Wformat=2". It will warn: "warning: format not a string literal and no format arguments" -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Moving oneself to /Applications (or ~/Applications)

2009-03-04 Thread Sean McBride
ence of that hidden file at start up. But then what if I copy the mounted volume itself? That invisible file would come along. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-

Re: binding to number of selected rows in a table

2009-03-04 Thread Sean McBride
ating when the selection >changes. Are these NSOutlineView methods not KVO-friendly, or am I >doing something wrong? Are you using NSTreeController? If so, you can bind to selectionIndexPaths and use @count also. -- ________ Sean McB

Re: Odd crash

2009-03-04 Thread Sean McBride
elease builds with these variables. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec,

Re: CrashReporter alternatives for third-party apps?

2009-03-05 Thread Sean McBride
e user has to have SCR installed. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mo

Re: How to create a modal dialog that blocks on start-up?

2009-03-06 Thread Sean McBride
d a delegate message like applicationWillFinishLaunching that gives you a chance to show a modal ok/cancel dialog at launch. Please create a dupe. :) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: interpretKeyEvents not handling HOME and END keys?

2009-03-06 Thread Sean McBride
;do the right thing' with NSTableView for me in 10.5 (they didn't used to). -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: interpretKeyEvents not handling HOME and END keys?

2009-03-06 Thread Sean McBride
ith those names. Also, if you class-dump AppKit you'll see scrollToEndOfDocument in NSTableView and NSTextView. Mention in your bug. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Extreme Crashing from QT Movie Layers in Core Animation

2009-03-06 Thread Sean McBride
Seth Willits (sli...@araelium.com) on 2009-03-06 8:28 PM said: >I'd bet the farm that it's not my fault, so really the only thing I >can think of is a crazy memory smashing bug somewhere in QT or Core >Animation. I assume you've tried with guard malloc, etc. then?... Try the hardware test cd for

Re: NSString to Integer

2009-03-07 Thread Sean McBride
Dave DeLong (davedel...@me.com) on 2009-03-07 7:55 PM said: >I'm on a 2GHz Macbook Unibody, so I'm expecting that d is a 64-bit >integer. Don't expect, measure. What does sizeof(d) give? Also, if you want a 64 bit integer, use int64_t. NSInteger changes size depending, as others have said. Se

Re: MVC, storing VIEW-specific information and core data

2009-03-09 Thread Sean McBride
inator. -- ____ 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.app

Re: Garbage collected and non-garbage collected

2009-03-10 Thread Sean McBride
You'll have to do a code review and testing of the framework's code to make sure it supports both GC and RR. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-r

Re: Garbage collected and non-garbage collected

2009-03-10 Thread Sean McBride
in GC I'm erring on the side of caution and leaking. Cheers, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Handling errors in -initWithCoder:

2009-03-13 Thread Sean McBride
x27;t think that's the right pattern for failure in init. You should call [super dealloc] not [self autorelease]. See: <http://lists.apple.com/archives/objc-language/2008/Sep/msg00133.html> -- ____ Sean McBride, B. Eng

NSProgressIndicator's setUsesThreadedAnimation only works sometimes?

2009-03-13 Thread Sean McBride
dicator animate while the main thread is blocked? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: NSProgressIndicator's setUsesThreadedAnimation only works sometimes?

2009-03-13 Thread Sean McBride
l the time. But the docs are not encouraging. On 3/13/09 3:25 PM, Rob Ross said: >No, none at all. The main AppKit thread is the thread that will be >repainting your progress bar. If it's blocked, it can't paint the new >state of your progress bar. > >Rob > &g

Re: Performance problem with GC enabled

2009-03-14 Thread Sean McBride
Bill Bumgarner (b...@mac.com) on 2009-03-14 12:40 PM said: >On Mar 14, 2009, at 9:27 AM, Kyle Sluder wrote: >> On Sat, Mar 14, 2009 at 12:22 PM, Bill Bumgarner wrote: >>> On Mar 14, 2009, at 3:29 AM, Paul Sanders wrote: >>> GC is similar to Core Data. If you had a Core Data app on Tiger, >>> th

Re: Performance problem with GC enabled

2009-03-14 Thread Sean McBride
Paul Sanders (p.sand...@dsl.pipex.com) on 2009-03-14 6:29 AM said: >I'm sorry Bill, but the more I hear about GC and in particular the >difficulties of using it with malloc'd memory the gladder I am not to be >using it. My unsolicited 2¢: :) I am happy that the GC implementation keeps GC memory

Re: Garbage Collection, Core Foundation, and the -finalize problem

2009-03-17 Thread Sean McBride
sons >that have so far escaped me). In my 10.5 SDK it is declared as: - (CGEventRef)CGEvent; You probably mean this one: - (const void * /* EventRef */)eventRef; I suspect it's because they don't want to pull in headers from another framework. Especially the pariah Carbon.h. :) --

Re: "selector ... is passed a return code and caller specified in contextInfo" ?!?!

2009-03-17 Thread Sean McBride
Jerry Krinock (je...@ieee.org) on 2009-03-17 7:41 PM said: >"The didEndSelector ... is invoked after the modal session has ended >and is passed a return code and caller specified in contextInfo. >didEndSelectorshould have the following signature: > >- (void)sheetDidEnd:(NSWindow *)sheet >

Re: cast to pointer from int of diff size & IODisplayCreateInfoDictionary

2009-03-17 Thread Sean McBride
Trygve Inda (cocoa...@xericdesign.com) on 2009-03-17 7:36 PM said: >io_service_tservice; >CFDictionaryRef dict; > >dict = (CFDictionaryRef) IODisplayCreateInfoDictionary (service, >kNilOptions); Why the cast? >No matter what I do I get: > >warning: cast to pointer from integer of dif

Re: Termination Running Applications ...

2009-03-18 Thread Sean McBride
applications without having to leave mine. Is >this at all possible ? Google for "quit appleevent". You'll want to send one to the app you want to quit. It provides the option for the user to save unsaved changes. -- ______

Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert

2009-03-18 Thread Sean McBride
s there a >better way? You're best bet is using performSelector:withObject:afterDelay: in awakeFromInsert, that way you're not fetching in awakeFromInsert. -- ________ Sean McBride, B. Eng s...@rog

Re: How does OS X launch login items hidden?

2009-03-19 Thread Sean McBride
use a Launch Services API, instead of NSWorkspace. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert

2009-03-20 Thread Sean McBride
#x27;auto-incremented' integer attribute. I suspect this is because performSelector:withObject:afterDelay: runs on a different pass through the event loop. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Re

Re: MacRoman -> UTF8 [solved]

2009-03-23 Thread Sean McBride
ubject changes, see: <http://www.cocoabuilder.com/archive/message/cocoa/2009/3/21/232818> (That said, I too would prefer the subjects not changing.) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-23 Thread Sean McBride
here, so thought I'd check. Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Class gets EXC_BAD_ACCESS only as NSOperation

2009-03-24 Thread Sean McBride
x27; for values like that that are never negative. Note for example that 'count' returns an unsigned value, and 'objectAtIndex:' expects an unsigned value. -- Sean McBride, B. Eng s...@rogue-researc

Re: several windows in a NIB ?

2009-03-27 Thread Sean McBride
an one person to change a nib at the same time (unlike source code). This is a good reason to keep nibs small. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: EXC_BAD_ACCESS and NSAttributedString driving me crazy

2009-03-30 Thread Sean McBride
Chris Idou (idou...@yahoo.com) on 2009-03-30 8:25 PM said: >I'm getting NSRTFDPboardType and NSRTFPboardType objects as NSData from >the pasteboard and I'm storing them in a core data XML repository and >getting them out again, and when necessary I'm converting them into >NSAttributedString with i

Re: Best Strategy to Control iTunes

2009-04-01 Thread Sean McBride
, it would appear that all public Process Manager APIs claim to be thread safe since 10.3. I guess there can always be bugs... -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.

Re: Create a folder as a package/bundle ...

2009-04-03 Thread Sean McBride
sRef, true, kHasBundle); -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québ

Re: Create a folder as a package/bundle ...

2009-04-03 Thread Sean McBride
with no Xcode) and navigate to a folder with an .xcodeproj? It will appear as a folder because Xcode doesn't set the bundle bit. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Create a folder as a package/bundle ...

2009-04-03 Thread Sean McBride
mkdir package $ SetFile -a B package -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: Non-pageable app

2009-04-04 Thread Sean McBride
Clark Cox (clarkc...@gmail.com) on 2009-04-03 7:27 PM said: >> My primary interest is to ensure that the content of an NSSecureTextField >> and any times I extract the string from it, the memory is not paged out, or >> cached. > >Then turn on "Use Secure Virtual Memory" in the Security Pane in >Sy

Re: crash reading archive

2009-04-05 Thread Sean McBride
James Maxwell (jbmaxw...@rubato-music.com) on 2009-04-05 4:24 PM said: >I'm assuming it's trying to release a released object, but I can't >see it... Any you tried any of the follewing: NSZombie? GuardMalloc? leaks checking with Instruments? MallocDebug? Also:

Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert

2009-04-06 Thread Sean McBride
managedObjectContext] processPendingChanges]; [[[self managedObjectContext] undoManager] enableUndoRegistration]; -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogu

Re: NSTableView - Ctrl-click editing?

2009-04-07 Thread Sean McBride
veloper.apple.com/releasenotes/Cocoa/AppKit.html#NSTableView> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mont

Re: finder file size

2009-04-08 Thread Sean McBride
Those APIs are often the best way to do things. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Develop

Re: Request for good advise to programmatically locate iMovie 09

2009-04-09 Thread Sean McBride
if possible, or use this strategy as a last resort. >> >> Any suggestions? > > >Take a look at the functions in LaunchServices' LSInfo.h header. Or NSWorkspace's absolutePathForAppBundleWithIdentifier:. -- _________

Master-detail interface, multiple selection, and mixed state checkbox state transitions

2009-04-15 Thread Sean McBride
checked->unchecked unchecked->checked mixed->checked What's the cleanest way to do this? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com M

Re: Master-detail interface, multiple selection, and mixed state checkbox state transitions

2009-04-15 Thread Sean McBride
ther does not. I compared every option in IB between the 2 checkboxes, and there is no difference! Oh well, at least it's 'solved'. Thanks! -- Sean McBride, B. Eng s...@ro

Re: warning for unsigned parameter, signed argument with NSUInteger

2009-04-15 Thread Sean McBride
7;t it, so this is really >unsigned int / int and I was expecting a warning. Have I missed a >warning flag or is there some NSUInteger artifact I'm not aware of? I have way more warnings than that enabled and I don't get a warning either. I don't think there is one. File a bu

Re: warning for unsigned parameter, signed argument with NSUInteger

2009-04-15 Thread Sean McBride
c.gnu.org/gcc-4.3/changes.html> So -Wconversion is probably exactly what is called for. Hopefully we'll see it in Apple's gcc fork one day! Greg, is a radar needed? -- Sean McBride, B. Eng s...@rogue-resea

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-20 Thread Sean McBride
ith a static analyser? It strikes me that if one currently develops with with XML store, and then one day switches to the SQL store (say when it becomes compatible with GC apps, grrr) when one is in for lots of things suddenly breaking. -- ______

canBeVisibleOnAllSpaces added in 10.5 and deprecated in 10.5?

2009-04-21 Thread Sean McBride
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)

Re: Time since Login?

2009-04-22 Thread Sean McBride
On 4/22/09 3:43 AM, Trygve Inda said: >(b) elapsed time since startup The old TickCount() API returns this. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.

Re: file extensions and Mime Type

2009-04-22 Thread Sean McBride
metadata. The only filesystem metadata available is the file name extension and HFS type. Those are what Launch Services consults to decide the UTI. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Sean McBride
pendent key paths working when you traverse a controller like that. See for example: <http://www.cocoabuilder.com/archive/message/cocoa/2008/6/18/210478> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researc

Re: non-movable fullscreen window

2009-04-22 Thread Sean McBride
illMove delegate, but is not helpful. Please >suggest any method to prevent window getting moved (when it is being >dragged) ? Have you searched the archives for suggestions about implementing full screen? This has been discussed many times. --

Re: Core Data and the Application Delegate

2009-04-24 Thread Sean McBride
e breaks Core Data >functionality that I'd otherwise get for free. > >Am I right about this? I don't believe so. Why do you believe this? In any case, you can check yourself by asking NSApplication what its delegate is. --

Re: Trying to get flagsChanged: to work

2009-04-25 Thread Sean McBride
Dave DeLong (davedel...@me.com) on 2009-04-25 1:46 PM said: >Interesting. Coming from the world of iPhone dev, this seems wrong to >me. On the iPhone, a view's controller is in the chain by default. NSViewController was added in 10.5. Perhaps automatically adding it to the chain would have cau

<    5   6   7   8   9   10   11   12   >