Re: NIB doesn't link to objects

2010-11-13 Thread Andy Lee
On Nov 13, 2010, at 8:50 PM, Quincey Morris wrote: > 2. You didn't really hook up the outlets in IB. Only you can check that, and > you have, but it's worth keeping in mind that it's easy to talk yourself into > believing that you've done it right when you haven't. (Speaking from painful > perso

Re: Ghost outlet

2010-11-13 Thread Jerry Krinock
On 2010 Nov 13, at 09:04, gMail.com wrote: > I quit, relaunched Xcode and IB, reopened the project, verified that there > is no "abc" string on all of my code, many times. You didn't mention the action which *should* remove that outlet, which is to click in the menu File > Read Class Files… or

Re: Strange result with NSView's convertPoint:toView:

2010-11-13 Thread Ken Ferry
Hi Eric, I don't entirely follow this question, but I suspect I know what you're missing: the frame of a view is its location in the coordinate system of its superview. Its bounds is its location in its own coordinate system. So this is okay [superview convertRect:[view frame]... And this is

Re: Problem saving in a Core Data application

2010-11-13 Thread Jerry Krinock
On 2010 Nov 13, at 15:23, Kyle Sluder wrote: > The only common race condition I can think of off the top of my head is the > delay performing that NSController does. Maybe that's it. I just remember that when I first started using Core Data, my first instinct was to uncheck those "Optional" b

Re: More stoopid questions...

2010-11-13 Thread Kyle Sluder
On Nov 13, 2010, at 5:35 PM, William Squires wrote: > 1) Why is it, when you create a new Cocoa Application (or even some iOS > Applications) in Xcode, does it generate AppDelegate (.h and .m) > files, instead of calling them Controller (.h and .m)? Since these > tie to the .xib - according to

Re: NIB doesn't link to objects

2010-11-13 Thread Quincey Morris
On Nov 13, 2010, at 15:20, Charlie Dickman wrote: > Notably, I executed using GDB and watched it get to the method and fail to > assign values. FWIW, there are perhaps 3 "ordinary" causes of this sort of thing: 1. You try to do this at a point in time when the outlets haven't been established

More stoopid questions...

2010-11-13 Thread William Squires
1) Why is it, when you create a new Cocoa Application (or even some iOS Applications) in Xcode, does it generate AppDelegate (.h and .m) files, instead of calling them Controller (.h and .m)? Since these tie to the .xib - according to MVC paradigm - shouldn't it be a controller object for t

Re: Problem saving in a Core Data application

2010-11-13 Thread Kyle Sluder
On Nov 13, 2010, at 1:34 PM, Jerry Krinock wrote: > > On 2010 Nov 13, at 13:24, Paul Johnson wrote: > >> So, what I understand is that there are some "race conditions" within Core >> Data that make it impossible to specify that a property be required and that >> it is necessary to include in

Re: Problem saving in a Core Data application

2010-11-13 Thread Paul Johnson
Yes, I should have included my own program as it all has to work together. Still, it makes the "Optional" switch rather useless, if you ask me. Perhaps there is a way to introduce some synchronization that I'm not aware of. On Sat, Nov 13, 2010 at 3:34 PM, Jerry Krinock wrote: > > On 2010 Nov 13

Re: Problem saving in a Core Data application

2010-11-13 Thread Jerry Krinock
On 2010 Nov 13, at 13:24, Paul Johnson wrote: > So, what I understand is that there are some "race conditions" within Core > Data that make it impossible to specify that a property be required and that > it is necessary to include in one's code any checks for the presence of > values. No; the

NSConnection memory leak when SSH Tunnelled connection

2010-11-13 Thread Mike Silva
I am using a socket-based NSConnection between machine. Instead of a direct connection I use an SSH-tunnelled TCP connection for the NSConnection transport. Basically I have a local NSConnection socket client that I connect to server localhost:59595 (for example). At localhost:59595 is a SSH t

Re: Problem saving in a Core Data application

2010-11-13 Thread Paul Johnson
Thank you, Jerry! So, what I understand is that there are some "race conditions" within Core Data that make it impossible to specify that a property be required and that it is necessary to include in one's code any checks for the presence of values. Now that's interesting. Seems like a deficiency

Re: Problem saving in a Core Data application

2010-11-13 Thread Jerry Krinock
On 2010 Nov 13, at 11:29, Paul Johnson wrote: > http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com

Re: RTFDFromRange returns different data

2010-11-13 Thread Kyle Sluder
On Sat, Nov 13, 2010 at 11:02 AM, Keary Suska wrote: > On Nov 13, 2010, at 9:50 AM, Kyle Sluder wrote: > >> You really shouldn't be using NSKeyedArchiver for persisting data out >> to disk, anyway. What happens if you try to load the data on an older >> version of the OS? > > This statement as I u

Re: Problem saving in a Core Data application

2010-11-13 Thread Paul Johnson
Repost (I had a spurious line in the previous one.): Save and Save As always fails if I've deleted one or more row from the tableview. It's something incorrect or incomplete in my use of Core Data, I believe. I have two Entities and there are two tableviews. In one tableview I select an item and

Re: Problem saving in a Core Data application

2010-11-13 Thread Paul Johnson
Save and Save As always fails if I've deleted one or more row from the tableview. The document “Portfolio Set 1x” could not be saved as “Portfolio Set 1y”. portfolio is a required value. It's something incorrect or incomplete in my use of Core Data, I believe. I have two Entities and there are tw

Re: RTFDFromRange returns different data

2010-11-13 Thread Keary Suska
On Nov 13, 2010, at 9:50 AM, Kyle Sluder wrote: > You really shouldn't be using NSKeyedArchiver for persisting data out > to disk, anyway. What happens if you try to load the data on an older > version of the OS? This statement as I understand it is contrary to the documentation, as well as some

Re: Problem saving in a Core Data application

2010-11-13 Thread Jerry Krinock
On 2010 Nov 13, at 09:21, Paul Johnson wrote: > If there is more I need to state to define the problem, please tell me. State the steps for reproducing a successful save vs. the steps for reproducing an unsuccessful save. ___ Cocoa-dev mailing list

Re: RTFDFromRange returns different data

2010-11-13 Thread Kyle Sluder
On Sat, Nov 13, 2010 at 9:41 AM, gMail.com wrote: > Ok I will not use archiving to compare unarchived objects, but, how can I > compare  the data saved on the disk with the current mTextMutableString? Define some standard of comparison and write code to make that comparison. I'd probably compare

Problem saving in a Core Data application

2010-11-13 Thread Paul Johnson
I'm getting the following error message when I try to Save after deleting rows from a tableview: *AppKit called rmdir("/private/var/folders/FA/FAQBcfcBF9icyTATSBmeVE+++TI/TemporaryItems/(A Document Being Saved By MyApp)"), it didn't return 0, and errno was set to 66.* Do I need to implement a m

Ghost outlet

2010-11-13 Thread gMail.com
Hi, I had an IBOutlet idabc; in my MYObject class header file. This outlet "abc" was properly displayed on the Inspector Connection panel on IB, when I selected the blue cube "MyObject". Well. Lately I removed the abc outlet from the header, recompiled, run, etc... But on IB I still see th

Re: RTFDFromRange returns different data

2010-11-13 Thread Kyle Sluder
On Sat, Nov 13, 2010 at 8:46 AM, gMail.com wrote: > Martin, > are you saying that "is not sure that if I do not change mTextMutableString, > and I call archivedDataWithRootObject several times, e.g. with one second > interval, the stringData could be different? I hope no. This is exactly what he

Re: RTFDFromRange returns different data

2010-11-13 Thread gMail.com
Martin, are you saying that "is not sure that if I do not change mTextMutableString, and I call archivedDataWithRootObject several times, e.g. with one second interval, the stringData could be different? I hope no. I need to compare the data saved on the disk with the current mTextMutableString. D

Re: Numbers and mutable sets and retain counts, oh my!

2010-11-13 Thread Ken Thomases
On Nov 13, 2010, at 8:57 AM, William Squires wrote: > Let's say I have some sample code that looks like: > > -(NSMutableSet *)allOddNumbersExcept5Set > { > NSMutableSet *results = [[NSMutableSet alloc] initWithCapacity:1]; > > for (int i=1; i<=10; i+=2) > { > if (i != 5) >{ >NSString *

Numbers and mutable sets and retain counts, oh my!

2010-11-13 Thread William Squires
Okay, so I'm getting a bit melodramatic... Let's say I have some sample code that looks like: -(NSMutableSet *)allOddNumbersExcept5Set { NSMutableSet *results = [[NSMutableSet alloc] initWithCapacity:1]; for (int i=1; i<=10; i+=2) { if (i != 5) { NSString *testNumber = [NSString str

Re: [iPhone] iterate through all the MKPolygons on my map view

2010-11-13 Thread Philip Vallone
Never mind - > overlay.title does the trick - duh On Nov 13, 2010, at 8:51 AM, Philip Vallone wrote: > Hi, > > I have added some MKPolygons to my map view. I want to loop through all my > polygons and delete the one that has a certain title. My question is; how do > I access the propert

Re: Default keyword selector type

2010-11-13 Thread Michael Hall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Nov 13, 2010, at 6:41 AM, Ken Thomases wrote: From : ∙ The default return and ar

[iPhone] iterate through all the MKPolygons on my map view

2010-11-13 Thread Philip Vallone
Hi, I have added some MKPolygons to my map view. I want to loop through all my polygons and delete the one that has a certain title. My question is; how do I access the properties of the mkpolygon after the overlays have been added to the map view. This is how I am creating the MKPolygon MKP

Re: Default keyword selector type

2010-11-13 Thread Ken Thomases
On Nov 10, 2010, at 9:17 PM, Michael Hall wrote: > In looking at NSControl.h there is a NSKeyboardUI category definition with > the following instance method declaration > > - -- (void)performClick:sender; > > This category is defined a number of places and at least some of them > indicate tha

Default keyword selector type

2010-11-13 Thread Michael Hall
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In looking at NSControl.h there is a NSKeyboardUI category definition with the following instance method declaration - -- (void)performClick:sender; This category is defined a number of places and at least some of them indicate that the type fo