Re: Syncronizing class files and Core Data entities

2009-08-18 Thread Sean McBride
use mogenerator with great success. Which version are you using? Try getting the newest from version control. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research

Re: Syncronizing class files and Core Data entities

2009-08-19 Thread Sean McBride
(However, I don't believe he uses svn anymore. I think the newest version is with git now.) -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softw

Re: Get size of folder

2009-08-19 Thread Sean McBride
part of Carbon.framework but rather CoreServices.framework. It has a long history, and so many of its older APIs are deprecated, but the newest stuff is still supported, works on 64 bit, and even got new API in 10.5. -- ________ Sean McBride, B. Eng

Re: FYI - new debug & profile libraries are out

2009-08-19 Thread Sean McBride
s logged and wasn't sure if my app was >perfect or if I wasn't really using them. Note that if your app is GC, the _debug variant libraries are useless. : ( Xcode for example won't even launch with them. -- ____ Sean

Re: Heartbeat thread is blocked? -- With Code and Movie

2009-08-20 Thread Sean McBride
d you try to minimise the number of views using layering. I've found that lots of view don't draw properly with layering on, like NSPathControl and others. IIRC it's in the AppKit release notes. -- Sean McBride, B.

Re: FYI - new debug & profile libraries are out: Installer Refuses

2009-08-20 Thread Sean McBride
r build for some very new hardware? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Bindings & Reverting Properties

2009-08-22 Thread Sean McBride
Quincey Morris (quinceymor...@earthlink.net) on 2009-08-21 12:56 AM said: >since we're comparing comparing BOOLs, I'll contribute my preferred >version: > >- (void)setHappy: (BOOL)newHappy >{ > if (!happy != !newHappy) // Another way of safely comparing BOOLs I prefer: if (!!happy != !!new

Re: leak in a sound function

2009-08-24 Thread Sean McBride
null (this is documented, portable, and safe to rely on). -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Beware: trivially reproducible NSPersistentDocument crash when saving

2009-08-25 Thread Sean McBride
l7169032.zip> So be sure to fix all your validation errors, because the frameworks are not forgiving! :( -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rog

Re: Beware: trivially reproducible NSPersistentDocument crash when saving

2009-08-25 Thread Sean McBride
mes later when you try 'save a's then 'save' again. Then it crashes instead of displaying the error. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Starting editing for a Row as soon as it is Added.

2009-08-27 Thread Sean McBride
lf editColumn:columnIndex row:selectRowIndex withEvent:nil select:YES]; } } } } @end -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-

Re: debugging a 64 bit app

2009-08-27 Thread Sean McBride
parameters with cocoa 64 bit apps >with gdb? See: <http://www.clarkcox.com/blog/2009/02/04/inspecting-obj-c-parameters-in-gdb/> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Sean McBride
Eric Gorr (mail...@ericgorr.net) on 2010-07-23 14:20 said: >So, what is the best method to create a NSBox with a NSPopUpButton? > > *SNIP* > >It seems strange that the HIG would say this is ok, but then have the >NSBox API not support itor, have I missed something? What you've missed is that

Re: NSBox with a NSPopUpButton

2010-07-23 Thread Sean McBride
Kyle Sluder (kyle.slu...@gmail.com) on 2010-07-23 20:20 said: >On Fri, Jul 23, 2010 at 4:39 PM, Sean McBride wrote: >> What you've missed is that this is something Carbon can do that Cocoa >> cannot. :( If you launch IB and create a new Carbon window, add a Box, >> th

Re: Math.h functions with CGFloat

2010-08-10 Thread Sean McBride
On Tue, 10 Aug 2010 16:50:17 +0100, Alastair Houghton said: > seems like a good solution. Indeed. I wish I knew about that before. :) A pity that Cocoa.h includes math.h and not tgmath.h. -- ____ Sean McBride, B. Eng

Re: Handling NSManagedObjectContextDidSaveNotification from different threads

2010-08-12 Thread Sean McBride
Rick Mann (rm...@latencyzero.com) on 2010-08-11 17:33 said: >On Aug 11, 2010, at 13:16:28, Kyle Sluder wrote: > >> http://www.cocoabuilder.com/archive/message/cocoa/2009/5/29/237809 > >This thread refers to a debug version of Core Data. I looked through my >ADC assets, but don't see that anywhere.

Re: Unzip class/lib

2010-08-13 Thread Sean McBride
Tom Jones (tjo...@acworld.com) on 2010-08-13 14:39 said: >I have been googling for a little while now and I'm not finding the >answers. Does Mac OS X have a unzip library to unzip the archives >created in the GUI. I guess I could do the NSTask thing but I would >rather not. I would also like to av

Re: isTemporaryID unrecognized selector?

2010-08-14 Thread Sean McBride
Ferhat Ayaz (co...@me.com) on 2010-08-15 21:28 said: >It seems like a memory management problem. I'm always building with >analyze by default. There is no hints produced by the analyzer. I guess >I have to dig more in the code. Read up on 'zombies', for example here:

Re: Using Apple icons

2010-08-16 Thread Sean McBride
Ryan Joseph (r...@thealchemistguild.org) on 2010-08-16 20:48 said: >I'm sorry for posting this off-topic but I can't find a single list at >http://lists.apple.com/mailman/listinfo that is relevant to Apple policy >questions so I thought I could start here. Try d...@apple.com >What is Apples poli

Re: Erratic Cocoa Behavior

2010-08-17 Thread Sean McBride
"Executables" group in Xcode and check out the arguments and >environment variables there). Though that's probably not the cause of his problem, otherwise he'd see all kinds of 'drawing artifacts' everywhere... -- ________

Re: Losing my memory - a caching problem?

2010-08-17 Thread Sean McBride
tion) drain will do exactly the same as release. Still, using drain is probably a good habit to get into. For example, the clang static analyzer flags using release on an autorelease pool as a warning. -- ________ Sean McBride,

Re: Losing my memory - a caching problem?

2010-08-18 Thread Sean McBride
you have to be building as GC... it says: "Use -drain instead of -release when using NSAutoreleasePool and garbage collection" -- Sean McBride, B. Eng s...@rogue-research

Re: Style question

2010-08-30 Thread Sean McBride
aks. And for those that agree, AnalysisTool can flag failure to follow this style: <http://www.karppinen.fi/analysistool/#memory-management> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: can you autorelease toll-free bridged types

2010-08-31 Thread Sean McBride
.com/mac/library/documentation/Cocoa/Conceptual/ GarbageCollection/Articles/gcCoreFoundation.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwa

Re: Debugging crash in _class_shouldFinalizeOnMainThread

2010-09-01 Thread Sean McBride
correctly that one should also set AUTO_USE_TLC=0 if one uses AUTO_USE_GUARDS=YES? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Core Data fetch performance, design pattern sought

2010-09-02 Thread Sean McBride
same name. Likewise for Bar. This works. But it's slow if a single user action changes many names at once because many redundant fetches are performed. Any suggestions on a good pattern to solve this? Thanks, -- ________ Sean McBride, B.

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Sean McBride
p + 8) arg1 (_cmd) $r4 $rsi*(SEL*)($ebp + 12) arg2$r5 $rdx*(id*)($ebp + 16) arg3$r6 $rcx*(id*)($ebp + 20) arg4$r7 $r8 ? arg5$r8 $r9 ? -- _____

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Sean McBride
es/cocoa-dev/2010/Sep/msg00103.html Yeah, sorry about that. The question was asked in a different thread, and no one answered, so I did. I discovered later that someone renamed the thread/created a new one and that there were answers there. -- _______

Re: Interpreting a Crash Log

2010-09-14 Thread Sean McBride
sealiesoftware.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 De

Re: Make checkbox in table view uneditable

2010-09-15 Thread Sean McBride
. Depending what one's trying to convey... -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Coco

Re: Garbage collection 32 & 64-bit

2010-09-15 Thread Sean McBride
inked to by an app that is GC or not. But like Bill said, there's no mixing within a process. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Softwar

Re: NSSavePanel

2010-09-20 Thread Sean McBride
FieldStringValue: -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)

2010-09-27 Thread Sean McBride
*movie; BTW, instead of using 'void*' you can use 'id' if you #include . It's a pure C header file and so can be included in a pure C++ file. It typedefs 'id'. See also: <http://www.cocoabuilder.com/archive/cocoa/277595-call-cocoa-from.html> -- __

Re: Open Multiple Files

2010-09-29 Thread Sean McBride
ld be easily done? Are you a document-based app? Have you seen this:? <http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ Documents/Articles/ObjectInteractions.html> -- ________ Sean McBride, B. Eng

Re: Core Data inheritance across models?

2010-09-29 Thread Sean McBride
. See: NSEntityDescription, NSManagedObjectModel, etc. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec,

Re: What does core data do during a Save As?

2010-10-04 Thread Sean McBride
datamodels in the general case. For example, during development, the model can be in flux, and it would be nice to be able to diff one's changes before committing to SCM. -- ________ Sean McBride, B. Eng s...@rog

Re: What does core data do during a Save As?

2010-10-04 Thread Sean McBride
.. Hear hear. It's sad that NSDocument gives us autosave 'for free' and NSPersistentDocument takes that away. :( -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.ro

Re: Is it possible to load 64-bit EFI in Mac Pro

2010-10-11 Thread Sean McBride
ple.com/mailman/listinfo/darwin-dev> -- ________ 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: remove icon from Dock

2010-10-12 Thread Sean McBride
end the >dock process a HUP signal (or just kill it; it will be automatically >restarted). The Dock responds to the quit apple event, which is a much friendlier way of quitting it: tell application "Dock" quit end tell -- _________

Re: Why is 'missing sentinel in function call' appearing?

2010-10-14 Thread Sean McBride
any differences found are confined to types which share the same size and alignment. [GCC_WARN_STRICT_SELECTOR_MATCH, -Wstrict-selector-match]" Alas, the warning is not so useful in practice because Apple's headers trigger hundreds of such warnings. -- _

Re: NSSavePanel does replace / in the filename with a :

2010-10-16 Thread Sean McBride
gt;[NSFileManager componentsToDisplayForPath:]. Or perhaps even better, use NSPathControl. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Thread not registered mystery under GC

2010-10-26 Thread Sean McBride
as weak, and so if your deployment target is < 10.6 and even if you test them against NULL, you will crash. :( -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-resea

Re: Basic Q: reading properties from nil

2010-10-26 Thread Sean McBride
win.bounds; > >Should I expect frame to be all zero? That's what I thought was the >case, but I'm getting nonsense values that are not zero. See also: <http://www.sealiesoftware.com/blog/archive/2007/4/21/ objc_explain_return_value_of_message_to_nil.html> -- _

Re: NSFileManager and Resource Forks

2010-10-27 Thread Sean McBride
file, and then, use FSWriteFork >() to write your data. And in a Cocoa context, I recommend Nathan Day's Obj-C wrapper NDResourceFork: <http://github.com/nathanday/ndalias/blob/master/Classes/NDResourceFork.h> -- ________ S

Re: Heapshot Analysis to find Memory Accretion (Leaks)

2010-10-28 Thread Sean McBride
panel, page setup, etc. Then run 'leaks'. You'll see dozens. Happily, they are small. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com M

Re: Drag and drop between 2 table views

2010-10-28 Thread Sean McBride
ller to access an >item in the source table view? Have you worked through this example:? <http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/ Introduction/Intro.html> -- Sean McBride, B. Eng s

Is NSStreamEvent a bitfield or not?

2010-11-01 Thread Sean McBride
Red, why is all the code out there 'switch'ing? I'm confused. Thanks, -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com

Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date

2010-11-04 Thread Sean McBride
ses I knew about are fixed now (10.6.4), we previously knew of several ways to get that annoying message to appear. My guess is you've found another. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Cannot find protocol declaration for 'NSTableViewDelegate'

2010-11-05 Thread Sean McBride
e you're using the 10.6 SDK? Did you check project-level and target-level settings? And xcconfig files? -- Sean McBride, B. Eng s...@rogue-research.com Rogue Resear

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
Xcode stationary? I can't repro in mine, but it might be because I'm using GC. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date

2010-11-06 Thread Sean McBride
d matching on the URL you're looking for. What about PSC's: +setMetadata:forPersistentStore: Is the "Setting the metadata for a store does not change the information on disk until the store is actually saved" comment in the docs correct for this method? Thanks, -- _

Re: Custom NSSavePanel

2010-11-06 Thread Sean McBride
opUpMenu controls to NSSavePanel Yes, it's both possible and a good UI. See setAccessoryView: in the docs. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-res

Re: Over-released NSMenuItem on using "Open Recent" via Help menu search

2010-11-06 Thread Sean McBride
d=YES and NSEnableAutoreleasePool=NO might also help. And be sure that NSDeallocateZombies is NO (its default). You might try CFZombieLevel too, I forget how/if it overlaps with NSZombie. -- ____ Sean McBride, B. Eng s...@rogue-research.

Re: Calling getter on const object

2010-11-09 Thread Sean McBride
gt;will make me very happy! You can build and use clang yourself now: <http://shapeof.com/archives/2010/01/using_the_latest_llvm_with_xcode.html> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Apply animation curve to nswindow position?

2010-11-09 Thread Sean McBride
nk there's anything more than -setFrame:display:animate:, as Nick said. Carbon lets you do fancier animations, like the Genie effect (see TransitionWindow()), but those features never made it to Cocoa. -- ____ Sean McBride, B. E

Re: Custom NSCell and target/action

2010-11-20 Thread Sean McBride
vincent habchi (vi...@macports.org) on 2010-11-20 03:51 said: >> http://developer.apple.com/library/mac/#samplecode/AnimatedTableView/ >Introduction/Intro.html >> >> It will answer a lot of questions. > >I've done that. It is a nice example, but I think it is meant to people >that have already ti

Re: NSString/NSFont/Dingbats and the SnowFlake symbol

2010-11-25 Thread Sean McBride
ly destroy it). Just be sure your source file is encoded as UTF8, which is what gcc assumes. Otherwise pass -finput-charset to gcc to specify UTF16 or whatever encoding your source file is. However, I think this all requires 10.5 or later. -- _______

Re: Core data binding "first" of to-many relationship

2010-11-27 Thread Sean McBride
On Nov 27, 2010, at 17:44, Jerry Krinock wrote: >> I have an NSArrayController that holds a set of persons. These persons have >> a to-many relationship of name objects. Usually they will only have one >> name, but there may be multiple (or even no name). >> >> In my interface, I have an NSTabl

Re: label color

2010-12-07 Thread Sean McBride
;that can only be accessed by using Carbon. Funny that you mention Internet Config. Oddly, none of it is even marked deprecated. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue

Re: NSUndoManager retain/release of arguments - ad infinitum

2011-01-11 Thread Sean McBride
ere doesn't seem to be a nice way to get the Undo menu item to say descriptive things like "Undo Typing", "Redo Size Change", etc. When doing things 'the hard way' that part's actually easier. -- Sea

Re: NSNotFound

2011-01-17 Thread Sean McBride
(Which isn't a reason to bypass it, but...) -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Mon

Re: Gestures

2011-01-17 Thread Sean McBride
gesture support site:developer.apple.com -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal,

Re: Cleaning up weak references ( was Re: Odd Crash when adding table columns manually )

2011-01-20 Thread Sean McBride
pdate the sample. In the case of garbage collected-only mode, do I assume correctly that such setting to nil is not needed? -- Sean McBride, B. Eng s...@rogue-research.com Rogue

Re: Missing header files/folders?

2012-03-26 Thread Sean McBride
ne *blessed* developer directory. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada __

Core Data migration, what to do when adding the nth version of your model?

2012-04-04 Thread Sean McBride
I use the 'destination' popup and change it from 3 to 4? After doing so, and diffing its xcmapping.xml, I see the "destinationmodelpath" changes in the expecting way, and one big blob also changes. h, scary. Thanks for any help, -- _______

NSURL-based replacement for NSTemporaryDirectory()?

2012-04-05 Thread Sean McBride
just want any old temp directory? (Since someone will ask: my exact usage case is in unit test code, I need to test a file reader/writer, and just need a place to dump my files.) Cheers, -- ________ Sean McBride, B. Eng s...@

Re: NSURL-based replacement for NSTemporaryDirectory()?

2012-04-05 Thread Sean McBride
uplicate radar reports to prioritize fixes. A tired refrain (no offense). Cheers, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: Bookmark alias files v. Finder alias files

2012-04-14 Thread Sean McBride
as/blob/master/Classes/NDResourceFork.h> -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: Fast Enumeration and temporary objects/autoreleasing

2012-04-17 Thread Sean McBride
be desired for sure. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Declaring Variables - Setting to nil VS Not Setting?

2012-04-26 Thread Sean McBride
>I usually use the sample in line 1 when declaring vars inside my methods. > >NSString *theString = [NSString string]; >NSString *theString = nil; >NSString *theString; > >I thought lines 2 and 3 were the same thing. I was wrong. What is the >difference and when do you use the style shown in line

Re: Tracking down SIGABRTs

2012-04-30 Thread Sean McBride
>> void foo( int *ptr ) >> { >> assert( NULL != ptr ); > >Ouch. Don't use this in a Cocoa app; use NSAssert and NSParameterAssert >instead. You'll get much better reporting of the error, because you can >use custom messages with parameters, and the app will raise an exception >and log the backtra

Re: -[NSApp orderOut:] leaves custom sheet in -orderedWindows

2012-05-09 Thread Sean McBride
the garbage collector does some collecting and the window was collected, I guess. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-r

Re: 3d visualization

2012-05-14 Thread Sean McBride
at I wrap up myself into a command-line utility to be used >via NSTask... > >Suggestions? Maybe VTK: <http://www.vtk.org> Cross platform OpenGL-based C++, but also provides an NSView subclass. -- ________ Sean McBride, B. Eng

Re: GC and malloc question

2012-05-31 Thread Sean McBride
cannedOption instead of malloc. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: A color well in a table view?

2012-06-07 Thread Sean McBride
nlike most NSControls, there is no NSCell for NSColorWell. But 10.7 did add view-based tableviews, so if you can require 10.7+, that's probably your best bet. I've been meaning to try it myself... -- ________ Sean McBride, B. Eng

Re: opening file without an extension

2012-07-04 Thread Sean McBride
cates that all files should be enabled." -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: opening file without an extension

2012-07-04 Thread Sean McBride
bit, though the OP did ask: "Is there a way to let Powerbox (??) let the user select any file?" CFBundleTypeExtensions is deprecated though. Probably using kUTTypeData aka public.data is more appropriate. -- ________ Sean McBride, B

Re: Stupid block syntax!

2012-07-04 Thread Sean McBride
use NSInteger when it means NSComparisonResult. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___

Re: Stupid block syntax!

2012-07-05 Thread Sean McBride
I think ^ is one of the few operators that can't be overloaded in C++. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: "Capturing 'self' strongly in this block is likely to lead to a retain cycle"

2012-07-09 Thread Sean McBride
guess those of us switching from GC to ARC will have to sprinkle around. :( Shame. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac

Re: Quit helper app when main app terminates

2012-07-12 Thread Sean McBride
dle.id"]; > [helperApp terminate]; >} Although rare, it is possible to have more than one app with the same bundle id running at the same time. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Re

How to determine an NSSlider's thumb position onscreen?

2012-07-16 Thread Sean McBride
t I'm already using it to explain what the control is for.) Thanks, -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: >This started to appear during the process of going from GC to non-GC. What do you mean "non-GC"? I strongly suggest going from GC to ARC, not from GC back to the stone-age retain-release. Although quite different 'under the hood', wri

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 11:52:56 -0400, Charlie Dickman said: >What is ARC and where can I read learn about it? Googling "ARC Cocoa" should find you your answer. Here's a starting point:

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 12:03:49 -0400, Charlie Dickman said: >Never mind. It originates in Xcode 4 and I don't use Xcode 4. Then I suggest staying with GC. Why do you want to switch away from GC? Yes, it's deprecated, but so is Xcode 3, so -- Sean

Help with strange NSInvalidArgumentException

2012-07-17 Thread Sean McBride
Hi all, I've had two customer reports of the exception below. My code is not in the backtrace, so I'm not sure how to figure this one out. Anyone recognise anything here? NSInvalidArgumentException +[NSInvocation invocationWithMethodSignature:]: method signature argument cannot be nil

Re: Help with strange NSInvalidArgumentException

2012-07-18 Thread Sean McBride
a long computation is started, then the user presses Cmd-S.) Cheers, Sean On Wed, 18 Jul 2012 00:10:51 +0100, Mike Abdullah said: >Does anything in your code call -comm >itEditingWithDelegate:didCommitSelector:contextInfo: ? > >On 17 Jul 2012, at 20:46, Sean McBride wrote: > >>

Re: looking for a memory problem

2012-07-18 Thread Sean McBride
le with a nil check and CFBridgingRelease That's where I'm at anyway. I'm looking forward to the performance benefits of ARC, but will miss the GC programming model. -- Sean McBride, B. Eng s...@rogue-res

Re: Sharing a file between Mac and iOS

2012-07-20 Thread Sean McBride
On Thu, 19 Jul 2012 15:58:34 -0700, Gavin Stokes said: >Developers could do this routinely in the '90s under Palm OS; and yet years >into the iPhone SDK, Apple still hasn't figured it out? This should have >been expected and resolved within the first couple of SDK updates, if not >at launch. I'm

Re: looking for a memory problem

2012-07-20 Thread Sean McBride
} #else NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { return [(id)CFMakeCollectable(X) autorelease]; } #endif you see that it does the expected thing in either GC or ARC. Very useful. Just beware passing nil, which is ok with NSMakeCollectable but not so at the CF layer. --

Forcing Core Data to save attribute changed behind its back?

2012-07-23 Thread Sean McBride
Any other suggestions? Thanks, -- ________ 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-d

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-24 Thread Sean McBride
ata to think there is a change, and neither does regular accessors. Thanks, -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montré

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-24 Thread Sean McBride
:. As I test, I overrode it and always return NO. At first, I thought this did the trick, since Core Data passed through this and saved properly; but alas, it only seems to go through the path once after the document is opened, not every time I ask it to save. Thanks, -- __

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-25 Thread Sean McBride
changing the identity means using a different object... h... I guess since my object is basically a fancy wrapper of NSMutableData, I could actually copy my object but not copy the composed NSData too... Cheers, -- ________ Sean McBride, B. Eng

Re: Forcing Core Data to save attribute changed behind its back?

2012-07-26 Thread Sean McBride
On Tue, 24 Jul 2012 13:32:21 -0700, Sixten Otto said: >On Tue, Jul 24, 2012 at 11:27 AM, Sean McBride >wrote: >> Yes. My object is a subclass of NSObject and I don't override >isEqual:. As I test, I overrode it and always return NO. At first, I >thought this did the

Re: I2C question - what is correct mailing list

2012-08-02 Thread Sean McBride
win lists would be better, probably Darwin-dev: <https://lists.apple.com/mailman/listinfo> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Sof

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Sean McBride
ces has an API to get the smtp server? -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada

Re: +underPageBackgroundColor

2012-08-03 Thread Sean McBride
posed to be the colour related to NSPageController: <https://developer.apple.com/library/mac/releasenotes/Cocoa/AppKit.html#10_8PageController> -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: +underPageBackgroundColor

2012-08-07 Thread Sean McBride
to have OBJC_PRINT_REPLACED_METHODS 'on' all the time, but it's noisy, complaining about various Apple methods that replace each other. -- ____ Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Sandboxing die.die.die

2012-08-22 Thread Sean McBride
s when you lock yourself into a walled garden I guess. :( It is a sad state of affairs, I agree. -- ________ Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac Software

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