Re: Should I retain a variable returned from this accessor?

2008-08-13 Thread Negm-Awad Amin
Am Di,12.08.2008 um 21:36 schrieb Shawn Erickson: On Tue, Aug 12, 2008 at 2:12 AM, Negm-Awad Amin <[EMAIL PROTECTED] > wrote: BTW: You can do the same inside a getter to get rid of thread problems. Nope it does nothing to solve threading issues ([[blah retain] autorelease] isn't an atomic

Re: Disc write speed options

2008-08-13 Thread Chris Suter
On Wed, Aug 13, 2008 at 1:04 AM, Matthew Mashyna <[EMAIL PROTECTED]> wrote: > I'm trying to figure out how I can ask a DRDevice what burn speeds it's > capable of so I can offer a choice to the user. When I call the status and > info messages I don't see anything that looks useful. How can I get a

Re: Cocoa and SOAP without WebServicesCore

2008-08-13 Thread Thomas Engelmeier
Am 12.08.2008 um 22:26 schrieb patrick machielse: Now I find myself having to deploy to a platform where not even this feeble API is available. I've been investigating alternatives, and found the gSOAP library, which at the moment looks like the best candidate. However, ideally I would lik

Re: Is this how you can use bindings?

2008-08-13 Thread Chris Idou
Ahh I see. That works for a button, but with a toolbar button it makes the button flash momentarily, but then stays non-enabled. Any ideas? --- On Tue, 8/12/08, Ron Lue-Sang <[EMAIL PROTECTED]> wrote: > From: Ron Lue-Sang <[EMAIL PROTECTED]> > Subject: Re: Is this how you can use bindings? >

Re: Non-NSObject object and garbage collection

2008-08-13 Thread Ken Ferry
On Tue, Aug 12, 2008 at 11:30 PM, Quincey Morris <[EMAIL PROTECTED]> wrote: > On Aug 12, 2008, at 22:52, Ken Ferry wrote: > >> In general, you don't need to CFRetain an object to keep it alive >> while it's on the stack. The fact that it's on the stack is enough. >> If this wasn't true, there'd be

Re: Problem with friend function and gcc 4.2 with objective-c++

2008-08-13 Thread Thomas Engelmeier
Am 09.08.2008 um 16:32 schrieb Clark Cox: On Sat, Aug 9, 2008 at 2:20 AM, Thomas Engelmeier <[EMAIL PROTECTED]> wrote: Am 08.08.2008 um 00:09 schrieb Ken Worley: friend != static, and even then this probably would not be valid semantics. test1* tobj = newtest1(5); has nothing to do w

Re: DICOM images in Cocoa

2008-08-13 Thread Ken Ferry
Converting to JPEG would work, of course. If you do link in libraries that can render DICOM, you can add direct support to NSImage. You do this by implementing a subclass of NSImageRep, DICOMImageRep. The minimal implementation of an NSImageRep subclass is just the method -draw, which should dra

Re: Cocoa and SOAP without WebServicesCore

2008-08-13 Thread patrick machielse
Op 13 aug 2008, om 10:33 heeft Thomas Engelmeier het volgende geschreven: Am 12.08.2008 um 22:26 schrieb patrick machielse: Now I find myself having to deploy to a platform where not even this feeble API is available. I've been investigating alternatives, and found the gSOAP library, whic

Referencing known values in core data

2008-08-13 Thread Andrew Zahra
I am experimenting with core data. Binding fields such as text fields works fine. But now I have a pop up menu I want to bind to a set of known values. I have a "Task" Entity with a "frequency" field. The frequency field is a set of known values, such as hourly, daily etc, so I have not put this in

Re: Referencing known values in core data

2008-08-13 Thread I. Savant
On Aug 13, 2008, at 5:34 AM, Andrew Zahra wrote: I am experimenting with core data. Binding fields such as text fields works fine. But now I have a pop up menu I want to bind to a set of known values. I have a "Task" Entity with a "frequency" field. The frequency field is a set of known val

Re: DICOM images in Cocoa

2008-08-13 Thread Matthias Schonder
Hi, you may also try iiDICOM ( http://www.imaginginformatics.ca/open-source/quickdicom/iidicom-framework-readme ) but you may also take a look at dcmtk-library (http://dicom.offis.de/dcmtk ) which heavily used the mentioned Osirix-Viewer. dcmtk is C/C++ while iiDICOM is Objective-C regard

Programmatically place cursor within NSTextField

2008-08-13 Thread fclee
How can I programmatically position the cursor to an arbitrary position with a NSTextField? For example, placing a cursor within the parentheses '('...')' of a phone number? Regards, Ric. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: DICOM images in Cocoa

2008-08-13 Thread Thomas Engelmeier
Am 13.08.2008 um 10:55 schrieb Ken Ferry: Implementing an NSImageRep subclass is pretty similar to implementing a custom view. Is there an similar concept of QuickTime "Graphics Importers", i.e. system wide extensible formats ImageIO and / or NSImage can handle, possible? ___

Re: Cocoa and SOAP without WebServicesCore

2008-08-13 Thread Thomas Engelmeier
Am 13.08.2008 um 11:06 schrieb patrick machielse: a.) it works but can be hell if you have to debug, especially if you have to load 100kb+ generated source files in Xcode. Hmm, thanks for the warning. On the other hand, the documentation of gSOAP, and the available recourses on the web, se

Detect when another application goes into full screen mode or when dock becomes hidden

2008-08-13 Thread Angie Frazier
Is there a way to detect when another application goes into and comes out of full screen mode? Additionally, is there a way to detect with the dock becomes hidden because another app went into full screen mode? ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Accessing memory of another application?

2008-08-13 Thread Kyle Sluder
On Tue, Aug 12, 2008 at 10:14 PM, Steve Byan <[EMAIL PROTECTED]> wrote: > Actually, the man-page is incomplete and doesn't tell you how to read and > write another process's memory. The manpage also fails to mention the undocumented PT_DENY_ATTACH flag that applications can pass to force ptrace to

Re: Accessing memory of another application?

2008-08-13 Thread Jean-Daniel Dupas
Le 13 août 08 à 15:27, Kyle Sluder a écrit : On Tue, Aug 12, 2008 at 10:14 PM, Steve Byan <[EMAIL PROTECTED]> wrote: Actually, the man-page is incomplete and doesn't tell you how to read and write another process's memory. The manpage also fails to mention the undocumented PT_DENY_ATTACH

Re: Accessing memory of another application?

2008-08-13 Thread Jason Coco
On Aug 13, 2008, at 09:27 , Kyle Sluder wrote: On Tue, Aug 12, 2008 at 10:14 PM, Steve Byan <[EMAIL PROTECTED]> wrote: Actually, the man-page is incomplete and doesn't tell you how to read and write another process's memory. The manpage also fails to mention the undocumented PT_DENY_ATTACH

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-13 Thread Gustavo Vera
Maybe I should not, but I'm doing it anyway :D I'm looking inside and also I'm manipulating the structure and data of the sqlite file since about 200 revisions in my project. I'm doing this to provide newer versions of the app that has the possibility of performing database migrations / upgrades fr

Re: Detect when another application goes into full screen mode or when dock becomes hidden

2008-08-13 Thread Gregory Weston
Angie Frazier wrote: Is there a way to detect when another application goes into and comes out of full screen mode? Additionally, is there a way to detect with the dock becomes hidden because another app went into full screen mode? What are you really trying to accomplish? ___

Re: Accessing memory of another application?

2008-08-13 Thread Devon Ferns
Jason Coco wrote: The manpage also fails to mention the undocumented PT_DENY_ATTACH flag that applications can pass to force ptrace to fail to attach. Pro Tools, for example, does this because the "programmers" who wrote it spent twice as much time on the copy protection as on the actual ap

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-13 Thread Marcelo Alves
2008/8/13 Gustavo Vera <[EMAIL PROTECTED]>: > Maybe I should not, but I'm doing it anyway :D > I'm looking inside and also I'm manipulating the structure and data of the > sqlite file since about 200 revisions in my project. I'm doing this to > provide newer versions of the app that has the possibi

Re: Detect when another application goes into full screen mode or when dock becomes hidden

2008-08-13 Thread Eric Schlegel
On Aug 13, 2008, at 6:21 AM, Angie Frazier wrote: Is there a way to detect when another application goes into and comes out of full screen mode? Additionally, is there a way to detect with the dock becomes hidden because another app went into full screen mode? You can use a Carbon event

Re: DICOM images in Cocoa

2008-08-13 Thread Apple Cocoa List
Also check out: http://www.escape.gr/ Todd On Aug 13, 2008, at 1:12 AM, Devraj Mukherjee wrote: Hi all, My application requires to display DICOM image files. Preview doesn't support DICOM by nature so the thought at the moment is to use something like ImageMagick and convert these images to

How to read the z-buffer in a layer-backed openGL view?

2008-08-13 Thread Mathieu Coursolle
Hi Cocoa developers, I've been playing with this example for a while now: http://developer.apple.com/samplecode/LayerBackedOpenGLView/listing2.html and I was wondering if someone knew the answer to that question: Is is possible to read the z-buffer (using glReadPixels) in a mouseDown procedur

Re: Opening an external file in a external application

2008-08-13 Thread John Love
On 12 Aug 2008, has wrote: Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide more information. Very short info list is as follows (stuff I need to do from within my Cocoa app): 1) be able to save

Re: DICOM images in Cocoa

2008-08-13 Thread Sean McBride
On 8/13/08 4:12 PM, Devraj Mukherjee said: >NSImage doesn't seem to be able to take a DICOM stream. Is this the >best of doing this? Does anyone know of a Cocoa DICOM reader library? You could use VTK and/or ITK. See www.vtk.org and www.itk.org. These are the libraries OsiriX uses. VTK has an

Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)

2008-08-13 Thread Sumner Trammell
(I realize that this is bordering on a Google API question, but there is some Cocoa content.) Hi. One can whip up a WebKit/Cocoa app, aim it at a Gmail URL like this: https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail&service=mail&Email=YOUR_LOGIN&Passwd=YOUR

Re: Programmatically place cursor within NSTextField

2008-08-13 Thread chaitanya pandit
Hi, You first have to compute the character index where you need to place the cursor, then create a range with zero length and location = character index, Then get the editor (NSText object) for the text field, you can get one by calling NSWindow's "- (NSText *)fieldEditor:(BOOL)createWhen

Re: Subclassing NSTextView

2008-08-13 Thread Michael Ash
On Tue, Aug 12, 2008 at 9:15 PM, John Joyce <[EMAIL PROTECTED]> wrote: > Ooops, nevermind!! > I answered my own question. > When adding the class file to the project, start with the NSView subclass > template, then change it to subclass NSTextView in the .h > and in the .m either call [super drawRe

Re: Opening an external file in a external application

2008-08-13 Thread Shawn Erickson
On Aug 13, 2008, at 8:17 AM, John Love wrote: On 12 Aug 2008, has wrote: Really though, what's best/practical/possible all depends on what you're trying to do, so if you want more advice then you'll need to provide more information. Very short info list is as follows (stuff I need to do

Re: Should I retain a variable returned from this accessor?

2008-08-13 Thread has
Peter N Lewis wrote: I'm no Cocoa expert, but I think you're wrong on this, you've missed out a crucial line: At 3:12 PM -0400 11/8/08, Sean DeNigris wrote: // Get uid to return NSString* todoUid = [newTodo uid]; // Clean up [newTodo release]; newTodo =

Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)

2008-08-13 Thread mm w
hi, do you use gdata obj-c client? I think it's a cookie problem, did you ask for an auth basic? On Wed, Aug 13, 2008 at 9:05 AM, Sumner Trammell <[EMAIL PROTECTED]> wrote: > (I realize that this is bordering on a Google API question, but there > is some Cocoa content.) > > > > Hi. One can whip up

CGDisplayFade problem

2008-08-13 Thread Fabian
Hi all, I have this problem where CGDisplayFade fails every fifth or so time it is called, and I don't see why. What fails is usually fading in, but also out from time to time. As you can see in the code below I wait for the fade to complete in the fadeOut method, update the window content and the

Re: Should I retain a variable returned from this accessor?

2008-08-13 Thread mm w
no as far as possible, you shouldn't retain an accessor, you are not the owner of this accessor the accessor is owned by an the his object, you are the owner of an instance of one object when you create it for an example myobject { private dict; } string title(); ... string title() { retur

Re: Why won't Gmail cooperate with authentication delegate methods? (Gmail RSS feeds do.)

2008-08-13 Thread Derek Chesterfield
On Wed, Aug 13, 2008 at 9:05 AM, Sumner Trammell <[EMAIL PROTECTED]> wrote: One can whip up a WebKit/Cocoa app, aim it at a Gmail URL like this: https://www.google.com/accounts/ServiceLoginAuth?continue=http://mail.google.com/gmail&service=mail&Email=YOUR_LOGIN&Passwd=YOUR_PASSWORD&null=Sign+in

How to include a .c file in a loadable bundle?

2008-08-13 Thread Jesse Grosjean
Feeling pretty dumb here, but I can't seem to include a .c file in my loadable bundle target. I get a ton of errors. Is there some trick that I'm missing. Here's what I'm doing. 1. Create new Xcode "Cocoa Application" project. 2. Create new loadable bundle in that project. 3. Add new Carbon C

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-13 Thread Jim Correia
On Aug 13, 2008, at 9:56 AM, Gustavo Vera wrote: Maybe I should not, but I'm doing it anyway :D I'm looking inside and also I'm manipulating the structure and data of the sqlite file since about 200 revisions in my project. I'm doing this to provide newer versions of the app that has the poss

Re: How to include a .c file in a loadable bundle?

2008-08-13 Thread Ken Ferry
Perhaps a precompiled headers problem? See -Ken On Wed, Aug 13, 2008 at 10:05 AM, Jesse Grosjean <[EMAIL PROTECTED]> wrote: > Feeling pretty dumb here, but I can't seem to include a .c file in my > loadable bundle target. I ge

Re: How to include a .c file in a loadable bundle?

2008-08-13 Thread Jason Coco
You can't use Foundation in a C file... it's an Objective-C framework. Use CoreFoundation instead... you're getting these errors because Foundation/Foundation.h includes many Object-C statements which won't compile in C. HTH, Jason On Aug 13, 2008, at 13:05 , Jesse Grosjean wrote: Feeling

NSCollectionView and bindings to text fields in tab view

2008-08-13 Thread Hank Heijink (Mailinglists)
Hi all, I'm having some trouble figuring out a bindings problem. I've made a litle test project that shows the problem (http://www.hankheijink.com/TestTextfieldBindings.zip , it's a 64Kb file). This is the structure of the project: I've got an NSCollectionView wired up so that it gets its co

Re: NSCollectionView and bindings to text fields in tab view

2008-08-13 Thread Gerd Knops
Can someone confirm that this is a bug in NSCollectionView or IB, or am I simply doing something wrong? If the former, can someone recommend a workaround? Should I, for instance, set the bindings programmatically? I see the same behavior: If a NSTabView is used inside a NSCollectionView

Re: Is this how you can use bindings?

2008-08-13 Thread Ron Lue-Sang
Turn off "auto-validate" for the toolbar button in Interface Builder's attributes inspector. On Aug 13, 2008, at 1:37 AM, Chris Idou wrote: Ahh I see. That works for a button, but with a toolbar button it makes the button flash momentarily, but then stays non-enabled. Any ideas? ---

Re: How to include a .c file in a loadable bundle?

2008-08-13 Thread Jesse Grosjean
Perhaps a precompiled headers problem? See Ken, Thanks, that seems to have been the problem. Jesse ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Programmatically place cursor within NSTextField

2008-08-13 Thread Dustin Robert Kick
This can also be done with an NSFormatter. I've only worked through one example, long enough ago that I can't give helpful details, but you should be able to find an example on how to do something similar to what you're trying to do. I believe the example I looked at was using an NSForma

Re: Generate back trace programmatically?

2008-08-13 Thread Robert Bell
Hmm, could you generate an exception then look at the back trace in the handler? There is some documentation for backtrace handling in "Exception Programming Topics for Cocoa" under "Printing Symbolic Stack Traces" ... Perhaps there are other ways too ... Robert. On Aug 12, 2008, at 4:2

how to implement the auto-complement function like Xcode 3.x?

2008-08-13 Thread Leopard x86
Hi everyone. After experiment the built-in auto-complement function of Xcode 3.x, I am very impressed really, it is so powerful. Thanks for the hard- working Apple engineers. Then here comes the question: how can we implement this function for our editor-like application? Because I am working

Programmatic removal of an object..

2008-08-13 Thread R T
Using Core Data, my xcdatamodel has 1 entity (NSManagedObject) with 10 attributes. I need to add and remove the objects programmatically (not by buttons). I have... IBOutlet NSArrayController *ParamsNResults; IBOutlet NSTableView *ParamsNResultsTableView; ...and have created

Allowing menu item selection in a modal session

2008-08-13 Thread dcdeveloper
Hi, I have an application that sometimes runs a modal window (entered via [NSApplication runModalForWindow:]). During this modal session, I'd like to allow the user to select a menu item (namely, the "Quit" item), however, all menu items are automatically disabled when the modal session is entere

Checking whether Spotlight indexing is enabled for a volume

2008-08-13 Thread Rob Keniger
Hi, Is there any way to see if a volume has Spotlight indexing enabled short of calling mdutil via NSTask and parsing the results? I can't find anything in the docs that would return this information. What API is mdutil calling to get this info? I would have thought this was a very common

Re: Programmatic removal of an object..

2008-08-13 Thread Ron Lue-Sang
On Aug 12, 2008, at 10:40 PM, R T wrote: Using Core Data, my xcdatamodel has 1 entity (NSManagedObject) with 10 attributes. I need to add and remove the objects programmatically (not by buttons). I have... IBOutlet NSArrayController *ParamsNResults; IBOutlet NSTableView *ParamsNResultsTabl

Re: try this for fadebackin

2008-08-13 Thread Fabian
Thanks Tolga. I tried your code but no luck I'm afraid. The only difference between your code and mine seems to be you have 25 seconds reservation instead of kCGMaxDisplayReservationInterval (which shouldn't matter as the max interval is 15 seconds), and set your fade-in to asynchronous instead of

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
Chris Thank you for your time. I'm sorry for the entity names, force of habit anything that holds more than one record is plural to me. I'll correct them when all the problems are weeded out, I don't want to add to my current troubles. My model is EXACTLY the same as what you described.

Re: how to implement the auto-complement function like Xcode 3.x?

2008-08-13 Thread j o a r
On Aug 12, 2008, at 8:24 PM, Leopard x86 wrote: Then here comes the question: how can we implement this function for our editor-like application? Because I am working on an editor project which concerns about the user experience, I think the auto-complement function is an indispensable on

Re: NSTypesetter layoutParagraphAtPoint:

2008-08-13 Thread chaitanya pandit
Thanks Aki, that what exactly what i was looking for. Is there any documentation that describes other essential attributes that i need to set? Thanks again, Chaitanya On 13-Aug-08, at 12:38 AM, Aki Inoue wrote: You need to specify all essential glyph attributes for NSLayoutManager. In thi

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Quincey Morris
On Aug 12, 2008, at 20:10, Sandro Noel wrote: I have these entities, with these attributes and relationships. entity: Transactions attributes: field1, field2 relationship : transactionType entity: TransactionTypes attributes: field1, field2 relationship : transaction In interface builder I ha

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-13 Thread Louis Gerbarg
Performing migrations by altering the underlying structure of files you do not understand will most likely result in data corruption. Even if the file appears to work correctly now, that does not mean it is correct, and it does not mean that it will continue to work in the future, especially if you

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
Quincey, thank you the colums is bound with Value, transaction.transactiontype.name the combo box is content bound to a array controller that manages the items i want to choose from in the combo box. as content values (transactionTypes) name. I did not know about the content binding. how s

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
ha! what i found out is that since i'm using the transactionType.name to display the value of the relationship instead of updating the relationship to that row, the bindings update the name of the transactionType item in the database, so all the rows using that use that item also get rename

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Quincey Morris
On Aug 13, 2008, at 15:19, Sandro Noel wrote: the colums is bound with Value, transaction.transactiontype.name the combo box is content bound to a array controller that manages the items i want to choose from in the combo box. as content values (transactionTypes) name. Try this: Set the

Re: How to get array of characters from NSString

2008-08-13 Thread Ross Carter
On Aug 12, 2008, at 2:04 PM, Andy Lee wrote: This is also good: http://icu-project.org/userguide/unicodeBasics.html I found this much clearer and better-written than the first document you referenced. It defines terms and concepts in an orderly progression. But I would have found it dr

Re: Controlling line-breaking in a text view

2008-08-13 Thread Ross Carter
On Aug 12, 2008, at 9:07 PM, Ken Ferry wrote: Hi Andy, I'm still not familiar with the text system, so I don't know if the proxy was a good way to do this. The basics of subclassing NSTextStorage are described here: http://www.cocoabuilder.com/archive/message/cocoa/2002/2/5/14848 ___

Re: NSTypesetter layoutParagraphAtPoint:

2008-08-13 Thread Aki Inoue
Each glyph should have the location, not shown, draws outside line fragment, and bidi level in order for NSLayoutManager to properly render. Usually the default values for attributes other than the location is fine. Please file a bug for documentation enhancement. Thanks, Aki On 2008/08/

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
Quincey Again thank you! I did just that, 12 seconds before receiving your mail, so i'm glad i'm not totaly lost:) but the value still get's changed wrong, instead of changing the relationship object it changes the display name of that object. transactionType.name I've tried to have the co

Re: Accessing memory of another application?

2008-08-13 Thread has
Josh wrote: I'm trying to get started w/viewing/editing/interacting with the memory of another running application but I'm not where to get started. You could think of this as being a simple "game trainer" - which basically allows you to view and edit values in memory. Use a formal IPC

compile error when protocol not implemented?

2008-08-13 Thread Rua Haszard Morris
I'd like to get an error, not just a warning, when I pass an instance of a class to a method that takes a parameter conforming to some protocol, and the passed object does not implement the protocol. Is this possible? Is there a good way to set things up so an error is generated.. or is the

@property and @synthesize not working

2008-08-13 Thread Nathan Gilmore
Hello everyone, I am a newbie and I am having trouble getting my setter to work when I use @synthesize. Here is the code: **Header File** @interface DayTaskController : NSArrayController { NSCalendarDate *searchDate; } - (void)search:(id)sender; @property(readwrite, assign) NSCal

Re: @property and @synthesize not working

2008-08-13 Thread Andrew Merenbach
On Aug 13, 2008, at 6:47 PM, Nathan Gilmore wrote: Hello everyone, I am a newbie and I am having trouble getting my setter to work when I use @synthesize. Here is the code: **Header File** @interface DayTaskController : NSArrayController { NSCalendarDate *searchDate; } - (void)s

Re: DICOM images in Cocoa

2008-08-13 Thread Ken Ferry
Hi Thomas, ImageIO is not extensible, so far as I know, except that I know it will fall back to QuickTime in some cases, and I'm not sure if the fallback types might be determined dynamically. Cocoa has filter services, but I'm not familiar with them. I'll probably need to be at some point. htt

Re: Allowing menu item selection in a modal session

2008-08-13 Thread Matt Neuburg
On Wed, 13 Aug 2008 15:11:47 +0800 (WST), [EMAIL PROTECTED] said: >Hi, > >I have an application that sometimes runs a modal window (entered via >[NSApplication runModalForWindow:]). During this modal session, I'd like >to allow the user to select a menu item (namely, the "Quit" item), >however, al

Re: @property and @synthesize not working

2008-08-13 Thread Nathan Gilmore
Hi Andrew, Thanks so much for your quick response and all of the great tips! You were right. dayOneTasks was nil. I am a little confused about how this works with Interface Builder. In MainMenu.nib, I have a DayOneTasks Controller. It's class is set to DayTaskController. I also have th

Does NSNotificationCenter have zeroing weak references to observers ?

2008-08-13 Thread Erik Buck
Does NSNotificationCenter use zeroing weak references to observers ? I want to say "When using Cocoa’s automated memory garbage collection, NSNotificationCenter automatically un-registers observers that are no longer in use somewhere else in the application." I'm just not sure it's true.

Re: Does NSNotificationCenter have zeroing weak references to observers ?

2008-08-13 Thread Ken Ferry
Yep, it's true. http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcFinalize.html "in a garbage collected environment, notification centers use zeroing weak references" Please be aware that this isn't (yet?) true for Key-Value Observing. -Ken On Wed, Aug 13,

Re: @property and @synthesize not working

2008-08-13 Thread Andrew Merenbach
Hi, Nathan, Ah! I have a suggestion, but there's one thing that I forgot: as a *general* rule of thumb for *most* init methods, do not do anything between "self = [super init];" and "return self;" that isn't in a conditional to test the validity of "self" -- that is to say: - (id)init {

Re: compile error when protocol not implemented?

2008-08-13 Thread Michael Ash
On Wed, Aug 13, 2008 at 8:39 PM, Rua Haszard Morris <[EMAIL PROTECTED]> wrote: > I'd like to get an error, not just a warning, when I pass an instance of a > class to a method that takes a parameter conforming to some protocol, and > the passed object does not implement the protocol. Is this possib

Re: @property and @synthesize not working

2008-08-13 Thread Michael Ash
On Wed, Aug 13, 2008 at 10:27 PM, Nathan Gilmore <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > Thanks so much for your quick response and all of the great tips! > > You were right. dayOneTasks was nil. > > I am a little confused about how this works with Interface Builder. In > MainMenu.nib, I have

Re: What's the use of the Z_UUID in the Z_METADATA table?

2008-08-13 Thread Gustavo Vera
Well, I´m aware that problems in the future are a possibility with the approach I choose to take. That´s the reason why I´m trying to take all the cares I can to avoid those future problems as much as I can. In the mean time, I´m winning a lot of time by avoiding using or implementing the "possible

Re: compile error when protocol not implemented?

2008-08-13 Thread Rua Haszard Morris
I figured this must be the reason.. thanks for the detailed explanation. It did occur to me when i'd implemented the protocol method but hadn't yet declared conformance. At the moment this is a zero-warnings build so the warning stands out almost as much as an error... I guess a potential

CoreData, Object/Array Controllers and KVO

2008-08-13 Thread Jeff Hellman
Hi Folks- I've got a document based CoreData application. When I open a file and add some of my NSManagedObject subclass objects to either an NSArrayController (bound to an entity in my NIB) or NSObjectController (-setContent) the - (void)willChangeValueForKey:(NSString *)key is called. So is