Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread Joanna Carter
ferent file in each. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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

Re: standardDefaults

2011-07-21 Thread Joanna Carter
Le 21 juil. 2011 à 21:34, John Cate a écrit : > I'm not seeing a user/library/Preferences folder on Lion. Where are they > hiding application pLists in Lion (searching for them doesn't find any). The folder is there, just hidden. Use Finder - Go to folder and type it in. J

Re: Windows get released on 10.6, leak on 10.7

2011-07-21 Thread Joanna Carter
et > released when the window is closed. > > All thoughts appreciated. Just a long shot, but does this have anything to do with the new ARC (Automatic Reference Counting)? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev

Re: Synthesised properties and additional actions

2011-06-22 Thread Joanna Carter
Hi Matt > My book is about iOS 4; there is no GC in that world! ☺ Aha! Missed that bit But was I finally right? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Synthesised properties and additional actions

2011-06-22 Thread Joanna Carter
time inheriting all the synthesized > accessors' yummy goodness, whatever it may be? m. Ah, now I get it!!! - at least I think I do ;-) AFAICT, you are talking about making "non-GC" accessors less prone to reference counting errors? If I'm using GC, then this, presumabl

Re: Synthesised properties and additional actions

2011-06-22 Thread Joanna Carter
ss and not bothering to @synthesize. The only time I declare @synthesize and write getters/setters is when I want either a complex getter or setter but not have to bother writing the other. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev maili

Re: Parent-child Design Pattern

2011-06-12 Thread Joanna Carter
odeView The Model takes this structure and so should the View. I would say that you should design a NodeController and then derive from that class to add a ParentNodeController. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-d

Re: How to intercepting click on send in Mail.app

2011-05-30 Thread Joanna Carter
cript, which can do whatever you want with scriptable applications. I have a script that reacts to a message being sent and creates a To-Do item in Things. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: How to intercepting click on send in Mail.app

2011-05-30 Thread Joanna Carter
ActOn.html; it might save you reinventing the wheel :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: Getting a handle on CoreAnimation and MVC

2011-05-24 Thread Joanna Carter
ts should be bound to achieve their "look and feel". The MVP concept of Interactors, responding to UI gestures can be "emulated" by a Controller class, looking after the "input" side of things, whilst a "View Presenta

Re: How to start a Dashboard widget as soon as the user logs in?

2011-05-22 Thread Joanna Carter
hind a Dashboard Widget, which the widget simply "connects" to. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: Closing an app with the red dot.

2011-05-17 Thread Joanna Carter
to the wrong conclusion, especially when the OP doesn't mention anything to do with programming :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Re: Closing an app with the red dot.

2011-05-17 Thread Joanna Carter
Jim Do you realise that this is a mailing list for software developers? Nonetheless, assuming you don't mean programatically, simply click on the application in the Dock. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (

Re: Properties vs Instance Variables

2011-04-27 Thread Joanna Carter
ot;@synthesize > foo", you can still access "foo" and "self->foo" identically to _foo and > self->_foo above. It's OK, for some reason, I thought I had read that self->foo was no longer usable; my bad :-) Joanna -- Joanna Carter Carter Consu

Re: Properties vs Instance Variables

2011-04-27 Thread Joanna Carter
uld like to see a means of explicitly accessing the ivar, even if it has the same name as the property; although, I thought that not calling self.property from within the .m file defaulted to accessing the ivar if both it and a property existed? Joanna -- Joanna Carter Carter Consulting

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-20 Thread Joanna Carter
e array? Hmmm, now I'm going to have to try that out :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-20 Thread Joanna Carter
he Controller Key. I think the problem is in the value transformer; could you post your code? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Proper way to create a singleton without @synchronized ?

2011-04-18 Thread Joanna Carter
e and setup } return managedObjectContext; } @end This can then be accessed from other code as… { NSManagedObjectContext *context = [StaticClass managedObjectContext]; … } Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (

Re: Proper way to create a singleton without @synchronized ?

2011-04-18 Thread Joanna Carter
Hi Greg > A narrow technical reason: Objective-C's type system is limited when it comes > to class objects. Singleton instances are better supported. Do you mean in that static fields are not supported, or something else? Joanna -- Joanna Carter Carter

Re: Proper way to create a singleton without @synchronized ?

2011-04-18 Thread Joanna Carter
is just a matter of adding/modifying class files in the templates folder to make this happen every time? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread Joanna Carter
o that any reference to the derived singleton is implicitly also a reference to the base singleton? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread Joanna Carter
ion with going to all the trouble of creating a singleton rather than using the "static class" approach? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Passing an object to a custom sheet

2011-04-05 Thread Joanna Carter
called, I'm back in instance#1 without any knowledge about the value of > NSTextfield of instance#2. The way I would usually handle this would be to add an extra -init method, which takes the object as a parameter, to the controller class, and hold the object in a private ivar in the contr

Re: Using the same typedef in multiple files

2011-03-13 Thread Joanna Carter
essible from all these different > files? Simply place it in a separate header file, in the project, and #import that file into whichever implementation files you need to use it. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (

Re: Editing a list of NSMutableStrings

2011-03-03 Thread Joanna Carter
t always helps to pass on good information. I just need to spend even more time getting into the Cocoa way. Thanks again Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
p in IB. > All those things you basically got for "free" in Delphi by dropping down a > component and double clicking on it. Yes, I've already done that in presentations and articles for the UK Developers Group. > --corbin > (known in the Delphi world about

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Quincey > Use 'will/didChange:valuesAtIndexes:forKey:'. Now how did I miss that? :-) The trouble is, when you have spent years learning Delphi's VCL, then even more years learning the.NET libraries, the brain starts to get a bit crammed :-) Joanna -- Joanna Carter

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
d is used elsewhere? > Would it be correct that mutating the original string in its list should > modify the value that had been passed on to a different context? Maybe yes, > maybe no. There's a small can of worms lurking there. Oh yes, plenty of worms :-) But that's what you en

Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Xcode.pdf and would value feedback on whether 1. I am on the right track, 2. there is already a better tutorial on this. Many thanks Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: "context-aware" bindings

2011-02-27 Thread Joanna Carter
m/to something else that should contain the tag value, then what about using a variation of the Visitor design pattern? Are you creating something from the event, or an event from something else? Can you let us see an idea of the two classes involved? Joanna -- Joanna Carter Carter Consulting

Re: "context-aware" bindings

2011-02-27 Thread Joanna Carter
ors -- what's not clean about that?). There is certainly a design problem here. Why would two different callers expect a different result from a property, when one of those results is going to be nil? If one of the callers is expecting nil returned, why both

Re: Performing the selector from a stored IMP

2011-02-11 Thread Joanna Carter
y take the protocol/method approach. In addition to pointing me to NSInvocation, you have lifted the mist from my eyes as to how NSUndoManager can work. Once again, many thanks. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing li

Re: Performing the selector from a stored IMP

2011-02-11 Thread Joanna Carter
and shall remember it for future use. IMO, this is truly the next best thing to a delegate (as it is known in C#). Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Performing the selector from a stored IMP

2011-02-11 Thread Joanna Carter
onary wrapper class and that that the wrapper class returns a valid (typesafe) instance with the three delegates available. I really am going to have to do some more reading to find out if and when I might want to use an IMP. Thank you Joanna -

Performing the selector from a stored IMP

2011-02-11 Thread Joanna Carter
itself and can simply be called without having to go through any gymnastics to get the target object. Isn't this what IMPs do? TIA Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: NSViewWidthSizable causing problems? [Solved]

2011-02-03 Thread Joanna Carter
up. Once I recreated the NIB from scratch, everything worked as expected. I have come across this kind of problem, where the NIB seems to get corrupted or something, before. Is it a well known problem? Joanna -- Joanna Carter Carter Consulting __

NSViewWidthSizable causing problems?

2011-02-03 Thread Joanna Carter
rame:frame]; } … } The problem I have is that specifying NSViewWidthSizable as part of the resizing mask means that the parent form can no longer resize. Have I missed something simple? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-d

Re: Binding an objects "Enabled" to a button in IB

2010-08-31 Thread Joanna Carter
to that property. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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/Unsubsc

Re: Binding an objects "Enabled" to a button in IB

2010-08-31 Thread Joanna Carter
to write all their business logic in the form class. At least, in Cocoa, we have the encouragement to use controller classes. Surely, if you already have a controller for the form, it's not really that much effort to add an outlet property to the class and bind to that. Joanna -- Joanna Ca

Re: Binding an objects "Enabled" to a button in IB

2010-08-30 Thread Joanna Carter
erty of anything else to that boolean property, thus when the button's State is true, the other controls will be enabled. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: calling a function in one class from another

2010-08-05 Thread Joanna Carter
e available on the dataProvider field in the DataViewController class. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-11 Thread Joanna Carter
Hi Sean I tried this and found that most of its functionality is already present in Xcode. Also, the Autocustomize Entity Classes script doeszn't work in later versions of Xcode. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev ma

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Joanna Carter
more than one way to tackle this folder management and others may have their own opinions. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: Using NSFetchRequest to fetch NSManagedObject subclasses

2010-07-10 Thread Joanna Carter
omatically be set to the same name as the entity. Then all you have to do is to select those entities in the designer and select File|New File… menu item to generate the Managed Object Classes for the entities. Joanna -- Joanna Carter Carter Consulting _

Re: KVO oddity (or am I *really* idiot ?)

2010-06-09 Thread Joanna Carter
Hi Vincent > Thanks Kyle. As I said (privately) to Graham... No you didn't. I got that message with the list in the CC field. :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Cross XIB references?

2010-06-06 Thread Joanna Carter
of a nifty editor, and remember > saying to > myself, "Gosh, here we go again, competition is catching up with Apple with a > 10 > years delay. They've just reinvented NIB files" NIB (or XIB) files are not singletons, or do I misinterpret what you are

Writing an NNTP client

2010-06-01 Thread Joanna Carter
Can anyone tell me if Cocoa provides a ready made framework for accessing NNTP, or is there a third-party framework that is recommended? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Managed Object Context Reference

2010-06-01 Thread Joanna Carter
not very well written) example, but you should get the idea that any code that talks to the MOC can be located in the Controller and accessed from the View via a delegate. Joanna -- Joanna Carter Carter Consulting -- Joanna Carter Carter Consulting ___

Re: Managed Object Context Reference

2010-05-31 Thread Joanna Carter
Inspector for the array controller, expand the Managed Object Context section and bind to the File's Owner and the name of the MOC property that you declared, as the Model Key Path. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing

Re: subclass overwriting superclass ivar

2010-05-26 Thread Joanna Carter
iscussion evolved. Overwriting is just something that I would never imagine a decent compiler allowing, which is why I tended to avoid being thought of as stupid to assume it was possible. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailin

Re: subclass overwriting superclass ivar

2010-05-26 Thread Joanna Carter
} @end @interface Sub : Base { @private int i; } @end This code demonstrates what I would understand by overwriting, and it fails to compile. Although, it should be possible to redeclare such private ivars, it certainly is in C# and Delphi. Joanna -- Joanna

Re: Regarding MVC design pattern

2010-05-20 Thread Joanna Carter
tly, self->myFoo is capable of reaching the synthesised ivar. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: iPhone/iPad: Desktop wallpaper can't be set.

2010-05-19 Thread Joanna Carter
-beta-4-and-sdk-to-developers/ Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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.appl

Re: Regarding MVC design pattern

2010-05-19 Thread Joanna Carter
Hi Sherm > If you set the ivars directly, as above, the synthesized setters will > NOT be called. For that to happen, you need to use dot-syntax, like > this: You are absolutely right. I keep slipping back to previous languages :-) Joanna -- Joanna Carter Carter C

Re: Regarding MVC design pattern

2010-05-19 Thread Joanna Carter
l; endButton = nil; nameLabel = nil; numberLabel = nil; myModel = nil; [super dealloc]; } Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: Why I can't see my localized nib?

2010-05-18 Thread Joanna Carter
www.cocoabuilder.com/archive/search/1?q=applelanguages&l=cocoa> Noted. Thank you. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Why I can't see my localized nib?

2010-05-18 Thread Joanna Carter
from the bundle. Maybe someone else knows better :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-

Re: Why I can't see my localized nib?

2010-05-18 Thread Joanna Carter
Hi Gustavo > Joanna hello. here is the app. I cannot get the Slovak localisation to work either. But, then I read that the localisation is not included in Snow Leopard by default and I don't want to have to buy the licence for it. Sorry about that. Joanna -- Joanna Carter Carter Co

Re: Why I can't see my localized nib?

2010-05-18 Thread Joanna Carter
open the xib of slovak lang it says 'slovensky" so > the code its being detected. > > MMM now I wonder if I have the localization installed... If you can change the OS language to French and restart any of the Apple apps in French, then that doesn't sound likely. Send me

Re: Regarding MVC design pattern

2010-05-18 Thread Joanna Carter
tion code to the awakeFromNib method. This is called after the Nib is fully loaded. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Why I can't see my localized nib?

2010-05-18 Thread Joanna Carter
ean out the Build folder before zipping and sending it :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

Re: TIPS : Using Add2Project to organize your projects more effectively.

2010-05-17 Thread Joanna Carter
s to the Finder toolbar!! Thanks. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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.a

Re: NSTreeController and remove:

2010-05-17 Thread Joanna Carter
ons and they are disabled, this can also be a > reason why. Thank you for one of those superb little gems that can save so much time. I have filed it away under one of those things to remember before starting to tear my hair out :-) Joanna -- Joanna Carter Carter Consulting ___

Re: Core Data NSExpression Error

2010-05-12 Thread Joanna Carter
at is complaining that... > > -[NSCFNumber count]: unrecognized selector sent to instance 0x20001ab40 I have just copy/pasted your code into a test project, in which I did the same thing. All I did was change the entity and property names to match my model, and everything works fine. Joanna -- Joa

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Joanna Carter
> willChangeValueForKey: and didChangeValueForKey: when mutating properties via > key-value coding and key-value coding compliant methods." I understand that but Aaron seemed to be saying that his setters weren't causing notifications, which is why I suggested the manual pa

Re: self = [super init], nil?

2010-05-11 Thread Joanna Carter
using it for at least 15 years and see no reason for changing now :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Joanna Carter
Le 11 mai 2010 à 20:45, Joanna Carter a écrit : Sorry, the case of the property names is wrong in my code. Assuming the properties are called cornerSize, upImage and downImage: - (void) setCornerSize:(NSSize) _size { [self willChangeValueForKey:@"cornerSize"]; [[self cell] set

Re: Handling bindings of an NSControl which forward everything to an NSCell?

2010-05-11 Thread Joanna Carter
Image:_image]; [self didChangeValueForKey:@"UpImage"]; } - (void) setDownImage:(NSImage *) _image { [self willChangeValueForKey:@"DownImage"]; [[self cell] setDownImage:_image]; [self didChangeValueForKey:@"DownImage"]; } Joanna -- Joanna Carter Carter Consulting

Re: self = [super init], nil?

2010-05-11 Thread Joanna Carter
Le 11 mai 2010 à 12:36, steven Hooley a écrit : > Not really valid, given xcode doesn't support code coverage. Try Googling "Xcode code coverage" Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-d

Re: self = [super init], nil?

2010-05-08 Thread Joanna Carter
Hi Kyle > As they say, it's not a new version of the C without an additional > definition of "static"! :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: self = [super init], nil?

2010-05-08 Thread Joanna Carter
ight code generation to "emulate" virtual class methods. I must admit, virtual constructors and class methods, available in Delphi, were something I missed in C#, and am glad to be back in more friendly territory. Joanna -- Joanna Carter Carter Consulting ___

Re: self = [super init], nil?

2010-05-08 Thread Joanna Carter
thods are just as dynamic as instance methods. > So the adjective "static" is inapplicable. Unfortunately, "static" seems to have developed a mind of its own :-) Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing li

Re: self = [super init], nil?

2010-05-08 Thread Joanna Carter
e id* as the return type, it should be simply id. - (id) init { if (self = [super init]) { // rest of initialisation } return self; } Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: Core Data and reading a data file

2010-05-07 Thread Joanna Carter
a single project. My apologies. I had my Visual Studio head on when I wrote that. You are, of course, absolutely right. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Core Data and reading a data file

2010-05-06 Thread Joanna Carter
matically? Certainly you can use IB. Simply copy the model file and associated code to the second project. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: [iPhone] File coping application

2010-04-28 Thread Joanna Carter
y this :http://avatron.com/apps/air-sharing/ Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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)lis

Re: Creating temporary NSManagedObjects

2010-04-27 Thread Joanna Carter
ips fetched from the MOC, without affecting the display of any other array controllers. I have a tutorial that uses this approach. Would it help if I sent it to you? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: why doesn't the compiler complain?

2010-04-27 Thread Joanna Carter
Hi Matt > I see now, however, *why* the compiler is silent: it's because it weren't, > it would be too chatty. I turned on -Wselector and got 114 warnings... :) You too eh? Wow, was that a surprise - my tutorial project gave me 3679!!! Joanna -- Joanna Carter C

Re: NSManagedObject, retain count and dealloc:

2010-04-26 Thread Joanna Carter
in count (by honest means) drop > below 2. Is this normal expected behavior? The docs state that the MOC retains a reference to the MO until it is saved, so with the reference you are holding, that should make 2. Joanna -- Joanna Carter Ca

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
would agree, in that case, it could be equally valid. The only other benefit I have found in using a dictionary, with the category, is the simplicity of copying the state to and from the original object. But, I wouldn't make a doctrine out of it :-) Joanna -- Joanna Carter Carter Consulti

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
lationships, without the need to work with a secondary context, as well as not affecting any UI components that might be displaying the original list. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
Hi Vincent > nice, thanks a lot for talking some time explaining me this. De rien. > Your French is almost perfect, congratulations!; far superior to my own > English. I am glad my lack of skill in technical French didn't get in the way :-) Joanna -- Joanna Carter Car

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
dans une langue étrangère, ça c'est beaucoup plus difficile :-) Si je m'étais trompé en traduction, n'hésites pas de m'avertir. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Creating temporary NSManagedObjects (PS)

2010-04-26 Thread Joanna Carter
Hi Jack > Right, but we were talking about passing in nil as the context when > creating the object, so there's no context to remove it from. That's interesting. I have never tried using a nil context. Something more to add to my knowledge repository :-) Thank you Joanna

Re: Creating temporary NSManagedObjects (PS)

2010-04-26 Thread Joanna Carter
Hi Jack > Good question. I believe a simple release/autorelease will do. If the object has been created by inserting into the context, then it would have to be removed from the contrext. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
se the following code to update the object to be stored: { //assume your object to be stored is called originalObject [originalObject setValuesForKeysWithDictionary:self.editingValues]; ... } > I hope it is a bit clearer, despite my rusty English. I speak French if that helps? :-)

Re: Creating temporary NSManagedObjects

2010-04-26 Thread Joanna Carter
use an NSDictionary? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Joanna Carter
ny:(NSSet *)value; @end Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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

Re: CoreData: updating property of fetched object and refetching

2010-04-20 Thread Joanna Carter
you write your own caching, I doubt if you are going to get what you want without saving. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

Re: MVC question about updating the Model

2010-04-16 Thread Joanna Carter
guess is that you have a resource that know how to update its state and that change in state is observed by the controller/UI. However, you also want to be able to provide a user with an update button, in case they want to ensure that the state is up to date between automatic refreshes. In whic

Re: How does an NSTextField know that it's value has changed?

2010-04-13 Thread Joanna Carter
xt field is bound. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing 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/

Re: How does an NSTextField know that it's value has changed?

2010-04-13 Thread Joanna Carter
del, but this is not true for programatic changes. The MVC pattern and bindings work when you change the value in the model programatically, not the text field. As long as the property in the model is KVO compliant, the text field will follow the changes to the property. Joanna -- Joanna Carter C

Re: Data managment

2010-04-12 Thread Joanna Carter
licated, just > the document specific data. You can have multiple Core Data stores, each with a different storage mechanism. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Data managment

2010-04-12 Thread Joanna Carter
ing imbedding an SQLite database into my application, > but wasn't sure if I could use core data some how. Since Core Data uses SQLite, why not go that route? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: MainMenu.nib won't load

2010-04-10 Thread Joanna Carter
lan=en&pmode=download We really can't tell too much from the built app bundle - the nibs are compiled and cannot be opened and the source files for the controller are not there. The app runs here - Macbook Pro OS X 10.6.3 French. British English and (US) English Joanna -- J

Using a SOAP Web Service from iPhone

2010-04-09 Thread Joanna Carter
asses for an iPhone app. Can I ask what is considered the best route to go? Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: Bindings & ivars

2010-04-05 Thread Joanna Carter
d class, you need a KVO compliant property instead, otherwise the notifications of change will not get sent to the observing object. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Two text fields, one outlet?

2010-04-04 Thread Joanna Carter
at a time. Simply specify a property and bind the NSTextFields to that. @interface MyClass { } @property (nonatomic, retain) NSString *aTextValue; @end @implementation MyClass @synthesize aTextValue; @end With the later versions of the compiler, you don't even need to specify an ivar

Re: Best way to selectively show objects in a tree controller/outlineview

2010-03-31 Thread Joanna Carter
oller but, to work with the tree itself. If the data is retrieved from a Core Data store, you can mark each item with a "Valid" property and use a predicate on the fetch. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev mailing list

Re: How to catch modal window appearance?

2010-03-27 Thread Joanna Carter
eadaches.. There may be only one modal window at a time, > isn't it? I think you are used to Windows programming. Cocoa modal sheets are modal to the owning form, not the whole app. Joanna -- Joanna Carter Carter Consulting ___ Cocoa-dev ma

  1   2   >