Re: Core Data validateForUpdate

2009-12-21 Thread Sean McBride
ed to compare to other objects of the same entity type, then be warned that performing a fetch within awakeFromInsert is probably not a good idea. NSArrayController doesn't like it when you do that. -- Sean McBride, B. Eng

Re: Outline View Enter Edit Mode.

2009-12-21 Thread Sean McBride
com/archives/cocoa-dev/2009/Dec/msg00045.html> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mon

Re: storing ivars in core data docs

2009-12-23 Thread Sean McBride
ion might be to use the metadata methods, like metadataForPersistentStore:. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Is there a warning for this?

2009-12-28 Thread Sean McBride
Kyle Sluder (kyle.slu...@gmail.com) on 2009-12-24 9:20 AM said: >Otherwise, give your ivars a prefix (underscore is >verboten according to Apple, since they use it in the frameworks). This is a common misconception. The underscore is reserved by Apple for method names, not ivars. That's how the

Re: Notification when displays are detected?

2009-12-29 Thread Sean McBride
Jacob Schwartz (jakehschwa...@gmail.com) on 2009-12-29 1:15 PM said: >After some searching through the API, which apparently I am not good at, >I figured asking was easier. Does anyone know of a notification that >gets posted when another screen is added/detected. I figured it would be >in NSWorks

Re: NSTreeController/OutlineView w/CoreData & Bindings & multiple selection?

2010-01-04 Thread Sean McBride
Rick Mann (rm...@latencyzero.com) on 2010-01-04 4:08 AM said: >I have an NSTreeController and outline view displaying a hierarchy of >Group objects. This works fine. The NSTreeController is bound to the >managed object context, and uses a fetch predicate of "parent == nil". > >It won't let me sele

Re: NSDate without time portion

2010-01-05 Thread Sean McBride
to store an NSDateComponents (since they are NSCoding compliant). -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: iPhone: validate a NSString for US zipcode

2010-01-07 Thread Sean McBride
gt;these methods however, but a simple implementation of either data >structure would likely give you these performance characteristics. CFArray.h does discuss performance. And there exists a CFArrayBSearchValues(). -- ____ Sean McBride, B. En

Re: NSDatePicker 24 hour clock

2010-01-08 Thread Sean McBride
Daniel Wambold (wambo...@gmail.com) on 2010-01-08 6:12 PM said: >Hello. I have an NSDatePicker (NSTextFieldAndStepperDatePickerStyle) and >I need it to display time in a 24-hour time mode. After reading Apple's >docs and searching the Web, I can't seem to find a way to make this >happen. I have at

Re: NSDatePicker 24 hour clock

2010-01-09 Thread Sean McBride
Daniel Wambold (wambo...@gmail.com) on 2010-01-09 08:09 said: >> Strange. Have you tried in a test app? My app's >> NSTextFieldAndStepperDatePickerStyle NSDateField follows Sys Pref >> settings. I did nothing fancy to get that behaviour. > >Thanks for your reply. Yes, I tried a sample App. (XCo

Re: Enabling NSZombieEnabled programatically

2010-01-09 Thread Sean McBride
Graham Cox (graham@bigpond.com) on 2010-01-10 18:02 said: >Is there a straightforward way to set the NSZombieEnabled environment >variable programatically from within my app, and only for my app? It's >OK if this would need a relaunch to take effect. > >I want to be able to add a UI control to

Re: NSDatePicker 24 hour clock

2010-01-09 Thread Sean McBride
Daniel Wambold (wambo...@gmail.com) on 2010-01-09 18:37 said: >I changed the Apple Menu > System Preferences > Date & Time > Use a 24- >hour clock setting. In the "Clock" tab? If so, that setting applies only to the menu bar clock (why it can't just use the system setting is beyond me.) NSDatePi

Re: NSExtraMIData?

2010-01-12 Thread Sean McBride
un it from Terminal, and it generates html results. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev maili

Re: NSExtraMIData?

2010-01-12 Thread Sean McBride
as no access ? -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing lis

Re: (void *)contextInfo

2010-01-12 Thread Sean McBride
brary/documentation/cocoa/conceptual/ GarbageCollection/Articles/gcUsing.html> If you can require 10.6, I believe the new block APIs make the memory management simpler (haven't tried myself). -- ________ Sean McBride, B. Eng

Re: NSExtraMIData?

2010-01-12 Thread Sean McBride
;d be interesting in knowing if there is something similar for that case. On 1/12/10 9:37 PM, Mike Abdullah said: >Turn on NSZombieEnabled. > >On 12 Jan 2010, at 18:51, Sean McBride wrote: > >> On 1/11/10 8:10 PM, Greg Parker said: >> >>> Most likely, you over-

Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-13 Thread Sean McBride
xistent file ? No. But if its parent folder exists, you could create an alias to the parent folder and store the filename. Lastly, please don't post the same message to two lists. Not everyone is subscribed to both. -- ________ Sean McBrid

Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-14 Thread Sean McBride
get)]; NDAlias* alias = [NDAlias aliasWithPath:path]; } -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Can

Re: Application crashes

2010-01-21 Thread Sean McBride
ware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-26 Thread Sean McBride
oblems for you? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Garbage Collection Docs Puzzle

2010-01-26 Thread Sean McBride
00060.html> It's been working well for me. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev maili

Re: NSString category name collision?

2010-01-26 Thread Sean McBride
added a name space prefix to my method definition and the exception >departed. You can add the following env var to debug these problems btw: OBJC_PRINT_REPLACED_METHODS. -- ________ Sean McBride, B. Eng

Re: Need help figuring out poor Core Data performance

2010-01-26 Thread Sean McBride
ot been updated for 10.6 (still! :() so that complicates learning. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Ca

Re: AppleEvent memory leak

2010-01-27 Thread Sean McBride
hese leaks with an unmodified version of the sample code? If so, file a bug. The sample could be leaking, the OS could be leaking, or the leak detection code could be finding false positives. -- ____ Sean McBride, B. Eng s...@rogu

Re: What is the equivalent of SetSystemUIMode() in Leopard and above?

2010-01-27 Thread Sean McBride
symbols as public in the following major version. This has bitten me too. If Apple would consistently name their private methods with an underscore, this would not be a problem. -- ________ Sean McBride, B. Eng

Re: NSString category name collision?

2010-01-27 Thread Sean McBride
a dupe! :) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailin

Re: Uncaught exceptions not terminating my app

2010-01-27 Thread Sean McBride
uilds, the behaviour Paul seeks is great! -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: Want notification that Document will Close

2010-01-29 Thread Sean McBride
s/cocoa/AppKit.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev m

Re: Creating an Application Support folder

2010-02-12 Thread Sean McBride
he folder. This is in contrast to FSFindFolder() which can optionally (attempt to) create the folder for you. So although unlikely, be prepared for the folder to not exist. -- ________ Sean McBride, B. Eng s...

Re: Validating unique objects in CoreData

2010-02-12 Thread Sean McBride
(kCFAllocatorDefault, uuid)); CFRelease (uuid); } return uuidStr; } -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Deve

Re: Guidance on use of Application Support folder

2010-02-12 Thread Sean McBride
is such a buggy monstrosity. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québe

Re: Creating an Application Support folder

2010-02-13 Thread Sean McBride
Ken Thomases (k...@codeweavers.com) on 2010-02-13 08:58 said: >If you're targeting Snow Leopard or later, the new recommended routines are: > >-[NSFileManager URLForDirectory:inDomain:appropriateForURL:create:error:] >-[NSFileManager URLsForDirectory:inDomains:] > >The former can be told to create

Re: Validating unique objects in CoreData

2010-02-13 Thread Sean McBride
Roland King (r...@rols.org) on 2010-02-13 22:06 said: >That's not a horrible solution, except for the feeling that core data >ought to let you do what you want without having to implement your own >UUID cache. I have found it useful, on many occasions, to add a 'uuid' attribute to many of my Core

Re: Crash while drawing cell in NSOutlineView

2010-02-13 Thread Sean McBride
Trygve Inda (cocoa...@xericdesign.com) on 2010-02-14 22:13 said: >In code based largely on Apple's SourceView, I am drawing by IconAndTextCell >and getting a crash... > >Anyone seen this and know what it might be? > >I have added code to draw a badge which I am updating frequently - if I only >cal

Re: Validating unique objects in CoreData

2010-02-14 Thread Sean McBride
Chris Hanson (c...@me.com) on 2010-02-14 15:29 said: >> I have >> found NSManagedObject's objectID method largely useless since, as the >> docs say, "if the receiver has not yet been saved, the object ID is a >> temporary value that will change when the object is saved”. > >These aren’t as useless

Re: NSDrawNinePartImage not working ?

2010-02-14 Thread Sean McBride
Sandro Noël (sandro.n...@gestosoft.com) on 2010-02-15 00:36 said: >- (void) awakeFromNib{ > >[window setStyleMask:NSBorderlessWindowMask]; >[window setOpaque:YES]; > >NSDrawNinePartImage([[window contentView]frame], You should be drawing from drawRect:, not awakeFromNib.

Re: Question about zipping files

2010-02-14 Thread Sean McBride
Gideon King (gid...@novamind.com) on 2010-02-15 00:28 said: >Hi, I have a need to zip a selection of files from a folder. > > ... > >Are there any other options that I'm not aware of? NSWorkspaceCompressOperation? Sounds promising, right? But the docs say "This operation always returns an error

Re: Question about zipping files

2010-02-16 Thread Sean McBride
n be scripted. I looked quickly with AppleScript Editor, and indeed Finder does not seem to expose 'compress'. Oh well. I'd file a bug asking that NSWorkspaceCompressOperation be implemented. -- Sean McBride, B. Eng

Re: Preventing system sleep

2010-02-16 Thread Sean McBride
Name() on 10.6 or IOPMAssertionCreate on 10.5. >I was thinking of using the NSWorkspace extendPowerOffBy: but then the >doc says "Currently unimplemented". Don't you just love those?! :) -- ________ Sean McBride, B. Eng

Re: Preventing system sleep

2010-02-16 Thread Sean McBride
n you can't use it; if you only need to deploy on 10.5, then you can use it. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: NSTableViewDataSource Protocol

2010-02-18 Thread Sean McBride
ls declarations. For example: #if MAC_OS_X_VERSION_10_6 > MAC_OS_X_VERSION_MAX_ALLOWED @protocol NSConnectionDelegate @end #endif -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.

NSTableView with PopUpButtonCell column with different content per row

2010-02-18 Thread Sean McBride
contents to be either one list or another list depending on 'OS Name' of any given row. Any suggestions? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-

Re: NSTableView with PopUpButtonCell column with different content per row

2010-02-19 Thread Sean McBride
as soon as you want menu separators in the popup this no longer works. Unless you are aware of some way... In my case currently, I need several separators and also an 'other...' item that brings up an open panel. I'm going to investigate menuNeedsUpdate: a bit...

Re: Removing item from CollectionView by drag it out.

2010-02-22 Thread Sean McBride
so it may have left a bad taste in many people's mouths. I hear it's better in 10.6, but have not given it another look personally (wasted lots of time on it previously). -- ________ Sean McBride, B. Eng s...@rogue-res

Re: NSTableView with PopUpButtonCell column with different content per row

2010-02-22 Thread Sean McBride
ning it. But if one is using Core Data, and one wants the popup to show managed objects, doesn't that mean that you need to create model objects (and persist them) with the dummy @"-" value? -- Sean M

Re: Determine if only single instance is running.

2010-02-22 Thread Sean McBride
works for me: LSMultipleInstancesProhibited -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Qu

Re: High Level Toolkit -- is it obsolete or not?

2010-02-23 Thread Sean McBride
x27;s no other way to do that. That said, stay away from any deprecated Carbon API. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

custom NSActionCell in an NSTableView that uses Cocoa Bindings

2010-02-23 Thread Sean McBride
the past but no complete solution. The closest was this: <http://www.cocoabuilder.com/archive/cocoa/154240-cocoa-custom-nscell- binding-issue.html> Thanks, -- ________ Sean McBride, B. Eng s...@ro

Re: Carbon is C++?

2010-02-26 Thread Sean McBride
is not as good. Xcode's refactoring does not support C++, the debugger doesn't play nice with STL containers, the STL Debug mode is broken on 10.6, etc., etc. C++ support is good, but it's not great. -- ________ Sean McBride, B. Eng

NSTableView ignores changes to cell's objectValue outside mouse tracking methods?

2010-02-26 Thread Sean McBride
ableview so that it notices such a change? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Trouble with core data and Save As

2010-03-01 Thread Sean McBride
OS are you using? -- ________ 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: Custom NSCell

2010-03-01 Thread Sean McBride
, NSTableView copies them. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Forcing the package bit

2010-03-01 Thread Sean McBride
Graham Cox (graham@bigpond.com) on 2010-03-02 20:14 said: >I need to write a package file that is not listed as one of my document >types. How do I ensure that this will be seen as a package in the >Finder? It looks to me as though some new flags were added to NSURL to >cover this but the code

Re: NSForegroundColorAttributeName without AppKit

2010-03-01 Thread Sean McBride
BareFeet (list.develo...@tandb.com.au) on 2010-03-02 22:27 said: >>> I have some working code for adding attributes to a string. I'd like >to modify it so it will work without needing AppKit. I can get it all >going except the NSForegroundColorAttributeName constant which seems to >only exist in A

Re: Trying to achieve aperture PopUp buttons

2010-03-02 Thread Sean McBride
lKit does what you need: <http://www.brandonwalkin.com/bwtoolkit/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer M

Re: Trying to achieve aperture PopUp buttons

2010-03-03 Thread Sean McBride
Perhaps you could two could brainstorm together. :) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Qué

Re: predicate for a Core Data fetch request rejected by SQL

2010-03-05 Thread Sean McBride
QL to use Core Data. Of course, in practice, such knowledge is helpful, as you say. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: predicate for a Core Data fetch request rejected by SQL

2010-03-06 Thread Sean McBride
he XML store to the SQL store and it took a while to shake out all the 'bad' predicates. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: Weird Bug Report on 10.5

2010-03-08 Thread Sean McBride
achine. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailin

Re: How to get NSPathControl to resize programatically?

2010-03-09 Thread Sean McBride
Did you try "sizeToFit"? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mo

Re: [[Class alloc] init] preferable over [[Class instance] retain]?

2010-03-09 Thread Sean McBride
>better than: > >NSMutableArray *anArray = [[NSMutableArray alloc] init]; I prefer the latter because with GC 'retain' does nothing, and after writing GC-only code for so long, seeing it looks 'funny'. The latter doesn't look funny with neither GC nor RR. --

Re: 10.6 Base, 10.5 Target, runs fine on everything except Intel 10.5

2010-03-09 Thread Sean McBride
ot use it b) use it conditionally. -- ____ 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-de

Re: Triggering change notifications when modifying custom object ivars in core data app

2009-05-28 Thread Sean McBride
ollows: mutating a ManagedObject's attribute wreaks havoc with undo. Undo after all keeps a history of changed attributes, and if you go mutating them, well... -- ________ Sean McBride, B. Eng s...@rogue-research.com Ro

Re: [Core Data] mergeChangesFromContextDidSaveNotification: and thread safety

2009-06-01 Thread Sean McBride
.5.7 are still unavailable. -- ________ 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: How determine if file is in Trash, given Path or Alias

2009-06-01 Thread Sean McBride
not. For the archives: 2 more problems: a) use fileSystemRepresentation not UTF8String. b) with GC, 'path' may be collected before DetermineIfPathIsEnclosedByFolder() is finished with utfPath. So best to add a [path self] just before the 'return'. -- _

SQL store, GC apps, "statement is still active" exception, setReturnsObjectsAsFaults:NO

2009-06-01 Thread Sean McBride
equest:error:] () Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Coco

Re: SQL store, GC apps, "statement is still active" exception, setReturnsObjectsAsFaults:NO

2009-06-01 Thread Sean McBride
QL I'm assuming? I don't see this problem with XML. Maybe I'm just lucky? >On all versions of >10.5, Core Data is less than completely thrilled by fetching >recursively in -awakeFromFetch. This has subsequently been fixed. OK, so I guess I'll just use setRet

Re: How determine if file is in Trash, given Path or Alias

2009-06-01 Thread Sean McBride
open() and friends. :) But it's not a huge issue: fileSystemRepresentation and UTF8String give the same thing 99% of the time. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: How determine if file is in Trash, given Path or Alias

2009-06-02 Thread Sean McBride
>refusing to use GC as a consequence. Agreed. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: How determine if file is in Trash, given Path or Alias

2009-06-03 Thread Sean McBride
ndication that the returned memory may not be GC- controlled b) an error in the declarations. I don't know for sure. The docs sure could use some love in this area. -- Sean McBride, B. Eng s...@rogue-resear

Re: Help on adding volume control

2009-06-03 Thread Sean McBride
few months since 1.0.2. The newest version is clearly 1.1: <http://www.brandonwalkin.com/blog/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com

Re: UTI not identified correctly for some users.

2009-06-12 Thread Sean McBride
Mitchell, Welcome to the wonderful world of file extensions! :) A file has one and only one UTI. The system (Launch Services aka LS) decides on a UTI based on the file's extension and HFS type (and MIME type?). So if two apps declare different UTIs that refer to the same extension, LS will pick

Re: UTI not identified correctly for some users.

2009-06-17 Thread Sean McBride
ug on Apple Bug Reporter. You can't see my bugs, but you can reference them in your own bugs. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.co

Re: UTI not identified correctly for some users.

2009-06-17 Thread Sean McBride
e >an iPhone front-end for torrents was rejected, and they won't place >our app on the Mac OS X software download page. Interesting. I'll refrain from an OT rant now. :) BTW: the Carbon list would probably be better for UTI questions, at least one LS guy hangs out there. -- ___

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-23 Thread Sean McBride
t is >readable from the app. Note that 'tag' is 64 bit in 64 bit apps. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Amount of Arguments per Method

2009-06-23 Thread Sean McBride
list (Cocoa-dev@lists.apple.com) > >Please do not post admin requests or moderator comments to the list. >Contact the moderators at cocoa-dev-admins(at)lists.apple.com > >Help/Unsubscribe/Update your Subscription: >http://lists.apple.com/mailman/options/cocoa-dev/sean%40rogue-research.com > >This email sent to

Re: Opinion on managed memory and garbage collection

2009-06-23 Thread Sean McBride
t things will improve in 10.6 -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing li

Re: Warnings suggest compiler confusion between 32 and 64 bit code.

2009-06-23 Thread Sean McBride
les that might have their value changed during the conversion. You can get similar warnings today with: <http://www.karppinen.fi/analysistool/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

NSDocument's -close method calls itself?

2009-07-02 Thread Sean McBride
an exception. So where can I tear down what was done in init? (Note: I can't use dealloc because this is a GC app.) Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchw

Re: CoreData deleteAll of kind

2009-07-06 Thread Sean McBride
here's no method that takes an array/set and deletes them all. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: CoreData deleteAll of kind

2009-07-06 Thread Sean McBride
t it seems to me that CoreData might be able to do something smarter if given a set of things to delete vs many separate deletes. No biggie though. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: CoreData deleteAll of kind

2009-07-07 Thread Sean McBride
deleted because certain criteria are not satisfied. In >your proposed -deleteObjects: API, how would it deal with some objects >agreeing to be deleted, but others not? The same way deleteObject: does, by returning void. :) -- ________ Sean

Re: Clarification on accessors? (was: Yet another memory management question)

2009-07-08 Thread Sean McBride
t a feature. -- ____ 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: NSDocument's -close method calls itself?

2009-07-09 Thread Sean McBride
On 7/2/09 11:52 AM, Quincey Morris said: >On Jul 2, 2009, at 10:34, Sean McBride wrote: > >> I'm trying to find somewhere to undo what was done in my NSDocument >> subclass' initializer. Specifically, to start/stop KVO >> observation. It >> seemed like

Re: QuickLook

2009-07-15 Thread Sean McBride
Did you know there is a Quick Look list: <http://lists.apple.com/mailman/listinfo/quicklook-dev> its archives are also searchable. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Plain Text Kind

2009-07-15 Thread Sean McBride
tely suggest you read: <http://www.mikeash.com/getting_answers.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Sean McBride
is broke in 10.5.8 (which I haven't installed yet). -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal

Re: defining NSColor constants

2009-08-06 Thread Sean McBride
float/doubles. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-de

Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Sean McBride
owerPC customers. -- ________ 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

Re: determinate NSProgressIndicator animation

2009-08-07 Thread Sean McBride
hreadedAnimation: method? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev

Re: NSOperationQueue question

2009-08-07 Thread Sean McBride
se positives. Don't rely on it. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: NSData Questions

2009-08-10 Thread Sean McBride
ing to which metric? Memory usage? CPU time? Code readability? If you ever want to support garbage collection, I suggest this usage: - [NSMutableData dataWithCapacity:numBytes]; - mutableBytes to get pointer - fill with your data -- ________ S

Re: To get system sounds for Move or Copy operations

2009-08-10 Thread Sean McBride
t;drag to trash"]; > [deleteSound play]; NSSound initWithContentsOfFile:byReference: should do it. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.c

Re: To get system sounds for Move or Copy operations

2009-08-11 Thread Sean McBride
marked deprecated. There's not much future in an API that's unavailable in 64 bit.) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-re

Re: NSDateFormatter formats from NSLocale

2009-08-11 Thread Sean McBride
user's preferences. >Yet I can find no way to query it for date format. So you want to use the user's preference and yet you don't. The choice of leading zeros or no is part of the user's choice. But if you must, you could get the user's format string and careful

Re: Releasing ivars in -didTurnIntoFault. Should set to nil?

2009-08-12 Thread Sean McBride
n object. Therefore nilling after releasing in -didTurnIntoFault >is recommended. > >Does anyone disagree? I made that discovery a few months back too, and I agree with your reasoning and conclusions. I also asked an Apple guy at WWDC and he concurred too. hth, -- _

Re: Trouble with NSColor

2009-08-13 Thread Sean McBride
7;redComponent'? "This method works only with objects representing colors in the NSCalibratedRGBColorSpace or NSDeviceRGBColorSpace color space" Use colorUsingColorSpaceName:NSCalibratedRGBColorSpace to convert. --

Re: Trouble with NSColor

2009-08-13 Thread Sean McBride
UsingColorSpaceName:NSCalibratedRGBColorSpace to convert. > > >I believe that's what I'm doing in my first line of code, no? Ack! I need an eye replacement apparently. :) -- Sean McBride, B. Eng s...@rogu

Re: observeValueForKeyPath returns null in the change directory???

2009-08-17 Thread Sean McBride
I wish the documentation mentioned this. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing lis

Re: Trying to track down error in NSPersistentDocument when saving

2009-08-17 Thread Sean McBride
_NSLockError fb -[_NSZombie release] fb handleFailureInMethod:object:file:lineNumber:description: fb handleFailureInFunction:file:lineNumber:description: fb _NSAutoreleaseNoPool -- ________ Sean McBride, B. Eng s.

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