Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Sean McBride
is a command-line tool, not an >API. The actual API to set HFS flags is, I think, somewhere in >. Yes. You can use the MoreFilesX sample code and do this: FSChangeFinderFlags (&theFsRef, true, kHasBundle); -- ________ Sean McBri

Re: Cocoa UI Libraries?

2009-09-30 Thread Sean McBride
me to some of these libraries? One is BWToolkit: <http://brandonwalkin.com/bwtoolkit/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Dev

Re: Mixed Core Data and "static" nodes in outline view

2009-09-30 Thread Sean McBride
tities, and the entities existing below. You could certainly do it without bindings and use the delgate/datasoure methods of NSOutlineView. A bit of a PITA though. -- ____ Sean McBride, B. Eng s...@rogue-research.com Ro

Re: Where can I find Debug & Profile Libraries for 10.6 ?

2009-10-02 Thread Sean McBride
me they are out, there is already a newer (incompatible) OS version. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec,

Re: Checking whether a file is a genuine PDF file

2009-10-05 Thread Sean McBride
FDocument *pdfDoc =3D [[PDFDocument alloc] initWithURL:fileURL]=3B There is another case to consider: valid PDF files that are not supported by Preview/Quartz. For example, pdf files with 3D content display fine in Acrobat Reader but not in Preview. --

Re: GLSLBasicsCocoaDL sample code

2009-10-05 Thread Sean McBride
ke this to the OpenGL list... >I was hoping to learn about >Cocoa+OpenGL+shaders from this demo :-( You have! :) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-resear

Re: Storing UInt64 in a Core Data attribute ?

2009-10-05 Thread Sean McBride
using a 'transformable' type). -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Re: Launching and application in 32-bit in Leopard

2009-10-06 Thread Sean McBride
h' for one way. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev

Re: debugging cursors

2009-10-09 Thread Sean McBride
ed, but a good starting point: <http://developer.apple.com/mac/library/qa/qa2001/qa1279.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Ma

Re: Can I make custom pasteboard type for an object reference?

2009-10-16 Thread Sean McBride
, and so it risks getting prematurely collected. If you do do this, better CFRetain the object first. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

Re: Serial comm in Cocoa?

2009-10-16 Thread Sean McBride
On 10/15/09 5:12 PM, Oftenwrong Soong said: >What is the Cocoa-fied way to communicate via a serial port? The newest AMSerialPort code is now on sourceforge: <http://sourceforge.net/projects/amserial/> -- ____ Sean McBrid

Re: Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Sean McBride
re a utility that allows me to see every event as >it's sent? Just log-style output is fine. AEDebugSends? <http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html#SECAE> -- ____ Sean McBride, B. Eng

Re: Fwd: UTIs and readFromURL/writeToURL

2009-10-16 Thread Sean McBride
do better, using NSImage's imageTypes method. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Slider with tag?

2009-10-16 Thread Sean McBride
use addChildWindow:ordered: to keep your floating window linked to the slider's window. You can use an NSTimer to close the window after a short delay. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Resear

Re: UTIs and readFromURL/writeToURL

2009-10-17 Thread Sean McBride
On 10/17/09 10:21 PM, Alastair Houghton said: >On 17 Oct 2009, at 03:12, Sean McBride wrote: > >> On 10/10/09 11:15 AM, Sander Stoks said: >> >>> First, do I really have to add all types to my Info.plist file? If >>> the OS gets an update which adds a new f

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Sean McBride
ld you. -- ____ 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: correctly Controlling Garbage Collection

2009-10-21 Thread Sean McBride
ck, and we have not seen >any new discussions about it In my experience, this has not changed in 10.6.1. OBJC_EXHAUSTIVE_COLLECTION | OBJC_WAIT_UNTIL_DONE does not do what its name implies. Which is a real shame because it would be useful for debugging. -- _____

Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-22 Thread Sean McBride
Any advice on how to debug this? (I can repro this with 2 customer-provided documents, but I've not been able to create a document with this problem myself. Happens on 10.5.8 and 10.6.1; my app is garbage collected.) Thanks, -- ____ Se

Re: Transitioning to GC-supported

2009-10-27 Thread Sean McBride
copy), so remember to test on 10.5 too (if you support it). -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada _

Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
Hi all, Occasionally, my GC app crashes in objc_msgSend with none of my code in the backtrace. This only happens to customers; I've never caught it in gdb. I've read through Greg's awesome "So you crashed in objc_msgSend()" article, but I still don't have a clue. :( I'm able to determine that t

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
eopard crash logs. I have seen, and love that feature BTW! Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software D

Re: Mysterious crash in objc_msgSend in GC app

2009-10-27 Thread Sean McBride
e office do not have mics, so our users test this way more than us. Thanks also to Bill and Jens for their replies. For the record, I don't use NSMessagePort nor Distributed Objects, nor do I do any dynamic loading nor unloading of bundles. Cheers, -- ________

Re: FSMountServerVolumeSync Authentication problem

2009-10-28 Thread Sean McBride
On 10/26/09 9:34 PM, Sandro Noël said: >I'm having some problems with FSMountServerVolumeSync Since that's a Carbon function, maybe the carbon-dev list would be more appropriate (and yield you better answers). -- ____ Sean Mc

Re: EXC_BAD_ACCESS when migrating a store, but only sometimes...

2009-10-28 Thread Sean McBride
I'd >really appreciate it. I'd also try guard malloc. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

Re: Multithreading NSBezierPath creation and stroking. Measuring performance

2009-10-28 Thread Sean McBride
and testing your improvements. Good luck! -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-29 Thread Sean McBride
27; (the 'if' body). But if I do anyway (the commented 'if'), I get the 'dangling reference' error. If I don't, I don't. Even if I do [scene addTargetsWeak:[scene targetsWeak]] I get the error. Does this make any sense to anyone? Thanks,

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
pple provides no API, but you can use a union like this: typedef union { Float32 floatVal; uint32_t intVal; } SwapUnion; Then swap the int part with the int swapping APIs. -- ________ Sean McBride, B. Eng

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
though they take floats, they return structs. Odd. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
f you add the -Wstrict-aliasing warning flag? That's why I suggested using a union. See also: <http://cellperformance.beyond3d.com/articles/2006/06/understanding- strict-aliasing.html> -- Sean McBride, B. Eng

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-10-30 Thread Sean McBride
x27;context', which ends up firing a fault of some other object, etc. At some point awakeFromFetch is in the backtrace and at some later point I mutate a relationship. Ick. This suggests to me a design flaw in my code -- ________

Re: Cocoa bindings problem

2009-10-30 Thread Sean McBride
date'. Also use keyPathsForValuesAffectingValueForKey to indicate that 'timelessDate' depends on 'date'. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchw

Re: Cocoa bindings problem

2009-10-30 Thread Sean McBride
worry that strange things could happen there. In general, it will also depend how expensive it is to construct the derived property. Dates are fairly lightweight, so I doubt it matters here. -- Sean McBride, B. Eng

Re: What's the friendliest way to restart the Dock?

2009-10-30 Thread Sean McBride
he Dock so it >won't lose its current state? Probably by sending it a quit apple event. Searching the web/archives should yield lots of sample code on how to do that (in C, shell script, applescript, etc.) -- ____ Sean McBri

Core Data design question: receiving KVO notifications of partially mutated objects

2009-10-30 Thread Sean McBride
ugly with more than 3 or so properties... Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
SSwapLittleFloatToHost. I still don't get why the CF versions do not. ie why is there no CFSwapFloat32LittleToHost? They only have those weird host<->swapped versions. -- Sean McBride, B. Eng

Re: Tab View Issue

2009-10-30 Thread Sean McBride
describe, they are freshly created. I filed bugs for several and most were fixed in 10.6. The one you describe here is fixed. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.ro

Re: EndianU32_NtoB

2009-10-30 Thread Sean McBride
On 10/30/09 5:20 PM, Kyle Sluder said: >On Fri, Oct 30, 2009 at 10:31 AM, Sean McBride >wrote: >> Ah yes, I forgot about those... But I've found them not useful in >> practice.  I don't get why for ints they have host<->big, host<->little, >> etc.

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-10-30 Thread Sean McBride
David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said: >anyone have some sample code for a function that does the equivalent >of HIViewFlashDirtyArea() ? > >i'd like to have this i the debug version of my program to help flush >out inefficient invalidating. > >or: > >how do i fetch the

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-11-02 Thread Sean McBride
ument, the creation of new Foos. When I detect new ones, I'll perform some fetches, create new objects, relate them appropriately, etc. (In the past, I tried doing such things inside Foo's awakeFromInsert but I discovered that performing a fetch from that function leads to various problems.)

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-11-02 Thread Sean McBride
in >NSManagedObjectContextObjectsDidChangeNotification instead. Perhaps NSManagedObjectContextObjectsDidChangeNotification is the thing I have overlooked! I currently use it almost nowhere but have tonnes and tonnes of KVO observing going on. I'll have to RTFM on NSManagedObjectC ontextOb

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?

2009-11-02 Thread Sean McBride
er: <http://lists.apple.com/mailman/listinfo/quartz-dev> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: Keeping NSTimeInterval updated with current time

2009-11-02 Thread Sean McBride
27;ll have to enumerate them all). Have you observed a performance problem because of this? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac S

Re: Core Data design question: receiving KVO notifications of partially mutated objects

2009-11-03 Thread Sean McBride
edObjectsKey case). Unless I'm missing something? Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mo

Re: Apple Remote Control Wrapper sends same button ID for all buttons.

2009-11-03 Thread Sean McBride
>against 10.6. If you're working on 10.6, are you using his newest fixes? <http://github.com/martinkahr/apple_remote_control> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Help debugging "Dangling reference to an invalid object." Core Data error

2009-11-03 Thread Sean McBride
library easily enough. Here ya go: >Or we can enable change tracking in - >awakeFromFetch. But that would mean generic setters will dirty newly >fetched objects, and their containing documents, which people objected >to, and resulted in the current behavior. I don't mind the current behaviour

Re: Should I learn CoreData for this project?

2009-11-04 Thread Sean McBride
is a pain. One small model change and your file format is different and unreadable by older versions of your software. 10.6 also has improvements here (supposedly). Good luck! -- Sean McBride, B. Eng

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Sean McBride
you need a popup with some items that never change (which could include any number of separators) and some items that come from, say, an NSArrayController. You can use the 'content placement tag'. See NSContentPlacementTagBindingOption. -- _________

Re: Cocoa Sounds

2009-11-09 Thread Sean McBride
r sound later anyway...). Perhaps CoreAudio has a better solution. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, C

Re: Cocoa Sounds

2009-11-09 Thread Sean McBride
instantly on laptops, which will turn off the >audio hardware when it hasn't been used in a few minutes, to save >battery power. Turning it back on delays the sound a fraction of a >second and creates a slight 'pop'.) Ugh. -- ___

Re: Cocoa Sounds

2009-11-09 Thread Sean McBride
om/mailman/listinfo/coreaudio-api> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mo

Re: Cocoa Sounds

2009-11-10 Thread Sean McBride
increase priority. -- ________ 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: CALayer subclass allocation problem

2009-11-10 Thread Sean McBride
On 11/10/09 2:13 PM, Bob Barnes said: >Good ideas, but the static analyzer is Xcode 3.2, which requires >10.6 I believe. I'm still running 10.5. <http://www.karppinen.fi/analysistool/> -- ____ Sean McBride, B. Eng

Re: How to detect mac version (macbook version xx, mac version xx etc.)

2009-11-11 Thread Sean McBride
filing> -- ____ 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) Plea

Re: Creation date of Feb 14th 1946 - Why?

2009-11-17 Thread Sean McBride
kMagicBusyCreationDate? See Finder.h comments. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

addObserver:forKeyPath:options:context: memory management in GC

2009-11-17 Thread Sean McBride
and 'anObserver'? (I'm assuming not.) Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: [Q] Expanded tooltips in Cocoa?

2009-11-17 Thread Sean McBride
still discuss them? (PS: my bug is 5965794, if you want to reference it in your dupe.) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Core Data derived property not recognized after save & reopen

2009-11-18 Thread Sean McBride
mplement the dataOfType:error: method. What do you mean exactly by "derived properties"? Are they transient? Are they in your xcdatamodel? In any case, I believe your problem is that you can only fetch against properties that are in the persistent store ie in your xcdatamodel and not tran

Re: Question about Style wrt "private" methods

2009-11-18 Thread Sean McBride
g like this: objc[60273]: REPLACED: -[NSArray firstObject] by category RRExtra (IMP was 0x9612d970 (/System/Library/Frameworks/CoreFoundation.framework/ Versions/A/CoreFoundation), now 0x21b50e (/path/to/myapp)) -- ____ Sean McBr

Re: firstResponder KVO snow leopard crash; bug?

2009-11-18 Thread Sean McBride
t; Should one call super for all the viewWill/Did methods? Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: firstResponder KVO snow leopard crash; bug?

2009-11-18 Thread Sean McBride
Aaron Clarke (clark...@gmail.com) on 2009-11-18 8:28 PM said: >> Oh -- another thing. Does your subclass of NSCollectionView override: >> >> (void)viewWillMoveToWindow:(NSWindow *)window { >> >> but not call super? If not... call super! Your classes should always >> call super if it is defined in

Re: Advice about crash requested

2009-11-19 Thread Sean McBride
7;s a >"So, You've Crashed In objc_msgsend" FAQ out there on teh interwebz >somewhere that goes into more detail on troubleshooting. It's here: <http://www.sealiesoftware.com/blog/archive/2008/09/22/ objc_explain_So_you_crashed_in_objc_msgSend.html> -- __

Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed

2009-11-19 Thread Sean McBride
Scott Ribe (scott_r...@killerbytes.com) on 2009-11-19 8:53 PM said: >Table with editable columns, user is editing a cell, user is done, user >clicks "Save" button. User's last change is lost because >tableView:setObjectValue:forTableColumn:row: is not called. It is only >called if the cell loses f

Re: initializer methods

2009-11-19 Thread Sean McBride
Lynn Barton (lynnbar...@mac.com) on 2009-11-19 11:15 PM said: >This is an example of what not to do: >+ (Rectangle *)rectangleOfColor:(NSColor *) color >{ > self = [[Rectangle alloc] init]; // BAD > [self setColor:color]; > return [self autorelease]; >} > >However, on page 49 I r

Core Data: rules for custom managed object setter implementations

2009-11-20 Thread Sean McBride
accessors, but occasionally I implement custom ones. I couldn't find a general discussion of what can and can't be done safely in much methods. Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Rese

Re: How to avoid the movie distortion ?

2009-11-20 Thread Sean McBride
how about NSWindow's setAspectRatio:? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed

2009-11-20 Thread Sean McBride
Quincey Morris (quinceymor...@earthlink.net) on 2009-11-20 6:34 PM said: >...the window controller could send >'commitEditing:' messages directly to text fields and other views that >implement the NSEditor protocol. Nope. Despite the docs, you can't send commitEditing to a textfield. See also: <

Re: NSPersistentDocument, Garbage Collection and SQL Store

2009-11-22 Thread Sean McBride
jonat...@mugginsoft.com (jonat...@mugginsoft.com) on 2009-11-22 9:08 AM said: >Under 10.5.6 there were acknowledged issues with the magic combination >of Core Data, Garbage Collection and NSPersistentDocument SQL Store. >See http://lists.apple.com/archives/Cocoa-dev/2009/Feb/msg00176.html > >I can

Re: Global Object

2009-11-26 Thread Sean McBride
On 11/26/09 9:18 AM, Tom Jones said: >I thought I could just create a Global variable but that does not work. It should. >What do I need to do? Post code. -- ____ Sean McBride, B. Eng s...@rogue-research.com

Re: first time launch message

2010-03-16 Thread Sean McBride
t;maybe i need to correct? thank you, That feature is from Launch Services and is called 'file quarantine'. Hopefully knowing those terms will help you find more info. -- ________ Sean McBride, B. Eng s...@rogue-resear

Re: Float constants

2010-03-17 Thread Sean McBride
MakeRect (1.0f, 2.0f, ...) which has no warnings in 32 nor 64. It would be nice if we could write something like: NSRect foo = NSMakeRect (1.0cg, 2.0cg, ...) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Resea

Re: Multiple validation errors. Why?

2010-03-18 Thread Sean McBride
ror { if (error) { NSDictionary* userInfo = [error userInfo]; NSLog (@"encountered the following error: %@", userInfo); Debugger(); } return error; } -- _______

Re: Trouble forking my project

2010-03-25 Thread Sean McBride
ork with branches. I actually find myself missing Rez<->DeRez. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Trouble forking my project

2010-03-25 Thread Sean McBride
merge certainly cannot. I doubt other's can either. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: Bindings and Observing

2010-03-25 Thread Sean McBride
the only one you need. Ex, you can observe "values.colourPreference". -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

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

2010-03-29 Thread Sean McBride
to proceed... Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-d

Re: C typedef for NS ptrs?

2010-04-05 Thread Sean McBride
ome standard types used by Objective-C, including id. So if you include this, your headers can use the "id" data type even if they're included from plain C++ or C files." -- ________ Sean McBride, B. En

Re: UpdateSystemActivity replacement in Cocoa?

2010-04-05 Thread Sean McBride
&_assertionID); -- ________ 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: How do I get a file reference w/o relying on the path?

2010-04-05 Thread Sean McBride
't be deprecated for a long long time either, just like the Resource Manager. Many file formats (including QuickTime's .mov) store aliases and so Apple needs to keep this functionality "forever". -- _

Re: Finding managed objects by URI representation

2010-04-05 Thread Sean McBride
M) 2) is slower to fetch against vs using the permanent NSManagedObjectID. I'm curious why you are switching. I have thought about doing the same, but it just seems like way more work for little benefit. -- ________ Sean McBride, B. E

Re: How do I compare two NSDates using NSPredicate & Core Data

2010-04-05 Thread Sean McBride
earner. I'm pretty sure you can use just <, >, ==, etc. with NSDates in NSPredicates. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Deve

Re: UpdateSystemActivity replacement in Cocoa?

2010-04-05 Thread Sean McBride
to go :) IIRC, UpdateSystemActivity was accidentally/incorrectly excluded from 64 bit on some older SDK, I think the 10.5 SDK. That might be why it works for you and not him. -- ________ Sean McBride, B. Eng s...@rogue-research.com

What does console message "unhandled property type encoding" mean?

2010-04-06 Thread Sean McBride
arning about? It does seem related to CALayer, is there something special about adding @property to subclasses of CALayer? This exact question has gone unanswered before: <http://lists.apple.com/archives/Cocoa-dev//2008/Apr/msg00199.html> Thanks, -- _______

Re: Using Core Data ManagedObjectIDs to uniquely name files

2010-04-06 Thread Sean McBride
ee it I have the following options: You could make your file format a package and store within it the TIFFs and the CoreData persistent store. You can add a 'uuid' string attribute to your Employee entity and use that as the filename. -- ___

Re: How does Finder determine when a file is busy being written to the disk?

2010-04-07 Thread Sean McBride
days, but look through Finder.h, and read about kFirstMagicBusyFiletype and kMagicBusyCreationDate. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

Re: How do I compare two NSDates using NSPredicate & Core Data

2010-04-09 Thread Sean McBride
o in a Core Data context using a 'transformable' attribute. Comparing NSDateComponents is harder because you also need a calendar, etc. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-re

Re: HUD window widgets

2010-04-16 Thread Sean McBride
a look at this: <http://www.brandonwalkin.com/bwtoolkit/> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mont

Re: Zeroing out instance variables

2010-04-17 Thread Sean McBride
Ben Haller (bhcocoa...@sticksoftware.com) on 2010-04-17 09:06 said: >>> This should cast "individual" to void* before doing the pointer >>> arithmetic, of course. >> >> And of course by "void*" you meant "uint8_t*". Pointer arithmetic >> is undefined on voids... it happens to be supported by gcc

Re: NSTableView delete row with key?

2010-04-22 Thread Sean McBride
ject:event]]; } else { [super keyDown:event]; } } Thanks to Corbin Dunn for 90% of this solution! -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Can't set a cursor on a programmatically created window

2010-04-22 Thread Sean McBride
t;running in other views for the parent window (which is a 'traditional' >IB created window) with no problems at all. > >Any pointers towards a cause (or solution) are much appreciated. Does it work if you don't use NSBorderlessWindowMask? -- _____

Re: NSTableview background image for column?

2010-04-26 Thread Sean McBride
searching the sample code section for 'table' does not reveal this sample. :( -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research

Re: NSManagedObject, retain count and dealloc:

2010-04-26 Thread Sean McBride
ourse, it is impossible to make the retain count (by honest >means) drop below 2. Is this normal expected behavior? Probably. Why do you ask? What do you want to do in dealloc? Do you know about willTurnIntoFault? -- ________ Sean

Re: Finder file label from cocoa?

2010-04-27 Thread Sean McBride
Rainer Standke (li...@standke.com) on 2010-04-27 20:14 said: >Hello, > >is there a way to get to the finder label of a file from Cocoa? I'd like >to be able to get & set them. In 10.6 you can use NSWorkspace's: - (NSArray *)fileLabels - (NSArray *)fileLabelColors On older OSes, you'll need to u

Re: awakeFromFetch Called Multiple Times

2010-04-28 Thread Sean McBride
calls are for the same ManagedObject, or is it just that each ManagedObject is receiving an awakeFromFetch (and therefore triggering your breakpoint many times)? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Resea

Re: Matching the style of a HUD?

2010-04-30 Thread Sean McBride
rary/samplecode/ RoundTransparentWindow/Introduction/Intro.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montré

Re: Re-establishing KVO in Managed objects after undo

2010-05-01 Thread Sean McBride
Gideon King (gid...@novamind.com) on 2010-05-01 09:42 said: >Hi, I have some places in my code where I have managed objects that need >to observe various key paths. Why? (I'm curious... I've never used such a pattern.) Perhaps instead you could override setters so that they perform other action

Re: Problem mac os X version 10.6 when using sprinft

2010-05-07 Thread Sean McBride
lso, you should never use sprintf. Use snprintf instead. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Problem mac os X version 10.6 when using sprinft

2010-05-07 Thread Sean McBride
On Fri, 7 May 2010 21:50:46 +0100, Alastair Houghton said: >On 7 May 2010, at 21:16, Sean McBride wrote: > >> Also, you should never use sprintf. Use snprintf instead. > >snprintf() is safer, certainly, but "never" is a little strong for my >taste. Like goto

Re: self = [super init], nil?

2010-05-10 Thread Sean McBride
x27;t play well with code coverage. If the 'if' and its body are on the same line then knowing that that line executed does not tell you as much as it could if the body was on its own line. -- ________ Sean McBride, B. Eng

Re: Progress Indicator in Table View

2010-05-19 Thread Sean McBride
l it would be much appreciated. I believe this recent Apple sample code does what you're looking for: <http://developer.apple.com/mac/library/samplecode/AnimatedTableView/ Introduction/Intro.html> -- ____ Sean McBride, B. Eng

Re: Deallocation while key value observers still registered

2010-05-25 Thread Sean McBride
mment though: my understanding is that calling removeObserver from dealloc is, in general, discouraged. See here for some reasoning: <http://www.karppinen.fi/analysistool/> -- Sean McBride, B. Eng s...@rogue-resea

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