Re: IPhone- Datasensitive bug from CoreData...

2009-12-24 Thread Brian Bruinewoud
Final set of information for today. Sometimes the console just had INVALID INSTRUCTION without any error message. Mostly its the below error message but with different target objects. The latest was UIImageView - as far as I know, I have no UIImageVIew in my app (unless it's part of the implemen

Re: IPhone- Datasensitive bug from CoreData...

2009-12-24 Thread Brian Bruinewoud
Oh, sorry, here is the message in the Console: *** -[NSCFType controllerDidChangeContent:]: unrecognized selector sent to instance 0x3a11d70 Serious application error. Exception was caught during Core Data change processing: *** -[NSCFType controllerDidChangeContent:]: unrecognized selector se

Re: Releasing Objects

2009-12-24 Thread Greg Parker
On Dec 24, 2009, at 3:16 PM, Sherm Pendley wrote: > On Thu, Dec 24, 2009 at 5:13 PM, Greg Parker wrote: >> >> More precisely, there's exactly one short-circuit check and thus only one >> selector value. Under GC, @selector(retain) == @selector(release) == >> @selector(autorelease) == @selector(

IPhone- Datasensitive bug from CoreData...

2009-12-24 Thread Brian Bruinewoud
This has me totally stumped. I have an app that contains (currently) three Entities: Person Deed; and DeedDoneByPerson Deed is effectively a template object. I'll probably re-do the object model but I want to understand what's going on with this bug first. Deeds can be good or not and have a de

Re: NSTableview datasource issues

2009-12-24 Thread Kyle Sluder
On Dec 24, 2009, at 8:34 PM, aronis...@afroamerica.net wrote: Xcode could for example flag the datasource method where I had capitalized objectValueForTableColumn, either by pointing out that the method does not exist in interface or that I need to implement datasource methods correctly.

Re: Releasing Objects

2009-12-24 Thread Sherm Pendley
On Thu, Dec 24, 2009 at 7:36 PM, Joar Wingfors wrote: > > On 24 dec 2009, at 15.16, Sherm Pendley wrote: > >> Just out of curiosity, is that really a short-circuit in the >> message-passing machinery, or are all those selectors simply >> registered to point to the same IMP function? A useless bit

Re: NSTableview datasource issues

2009-12-24 Thread aronisoft
Actually the reloadData and datasource issues with NSTableView are reported often. Please try to "google" or "bing" these issues and you will be amazed on how many complaints are out there. Xcode could for example flag the datasource method where I had capitalized objectValueForTableColumn, ei

Re: Is there a warning for this?

2009-12-24 Thread Brian Bruinewoud
On 25/12/2009, at 01:20 , Kyle Sluder wrote: > On Dec 24, 2009, at 3:26 AM, Brian Bruinewoud wrote: > >> Is there some way to turn on a warning saying 'you are directly accessing an >> ivar where a (non-trivial) getter/setter exists'? > > I'm assuming you're targeting iPhone OS. > > If you c

Re: Releasing Objects

2009-12-24 Thread Joar Wingfors
On 24 dec 2009, at 15.16, Sherm Pendley wrote: > Just out of curiosity, is that really a short-circuit in the > message-passing machinery, or are all those selectors simply > registered to point to the same IMP function? A useless bit of > knowledge for us end-users, I know, but interesting just

Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?

2009-12-24 Thread Brian Bruinewoud
How about "replace all"? I haven't done any text programming so I'm not sure how much functionality the API offers. So this is purely a guess :) On 24/12/2009, at 19:39 , Iceberg-Dev wrote: > > On Dec 23, 2009, at 10:58 PM, Dave DeLong wrote: > >> In many apps, you can hold down the option ke

Re: n00b Q re: AppController

2009-12-24 Thread David Duncan
On Dec 23, 2009, at 6:37 PM, David M. Cotter wrote: > my carbon app loads a couple plugins, which use Cocoa. each plugin > implements AppController. should they? > > i get this in my log upon launch: > > objc[17568]: Class AppController is implemented in both /Library/Application > Support/k

Re: Releasing Objects

2009-12-24 Thread Sherm Pendley
On Thu, Dec 24, 2009 at 5:13 PM, Greg Parker wrote: > > More precisely, there's exactly one short-circuit check and thus only one > selector value. Under GC, @selector(retain) == @selector(release) == > @selector(autorelease) == @selector(dealloc) == @selector(retainCount). > Happily, `return s

MallocDebug Hang with Core Data Save

2009-12-24 Thread Richard Somers
Start with an Apple core data document based application project template. Build and start with performance tool MallocDebug. Launch and check for leaks. Back in core data app save file. Update to check for leaks and MallocDebug will hang. Happens on PPC and Intel, Xcode 3.1.4, MallocDebug

Re: Releasing Objects

2009-12-24 Thread Greg Parker
On Dec 24, 2009, at 12:47 AM, Ken Thomases wrote: > On Dec 24, 2009, at 2:23 AM, John Engelhart wrote: >> >> Wait, what? I could understand that under GC -retain might be nothing more >> than the equivalent of "- (id)retain { return(self); }", but -retainCount? >> Is it really "- (NSUInteger)reta

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-24 Thread Quincey Morris
On Dec 24, 2009, at 05:06, Nicolas Berloquin wrote: > The strange thing is that once I made the changes, it still didn't work. > I had to remove then recreate the NSCollectionView and all the views and > arraycontroller in IB > before it worked right. > Or maybe the chickens helped :) One of NSCo

Re: [iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Waqar Malik
Also since you are crossing the boundaries of the framework to UIKit you could also use the NSStringFromCGRect/CGPoint and CGRect/CGPointFromNSString and encoding strings. Again you will have an extras step to go back and forth. --Waqar On Dec 24, 2009, at 12:47 PM, Quincey Morris wrote: > On D

Re: [iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Quincey Morris
On Dec 24, 2009, at 09:59, Henry McGilton (Boulevardier) wrote: > I bashed into a problem with NSKeyedArchiver trying to encode > NSValue objects. > > I am using NSValue to wrap up CGPoint and CGSize structures, then > doing an encodeObject: forKey: to encode the NSValue. > > I get this

Re: Setting the Line Height/ Line Spacing in an NSTextView.

2009-12-24 Thread Douglas Davidson
Use a paragraph style. Douglas Davidson On Dec 24, 2009, at 10:25 AM, Joshua Garnham wrote: How would I set the Line Height/ Line Spacing in an NSTextView? e.g How tall each line is or how much space is between each line. Thanks. ___ Coco

n00b Q re: AppController

2009-12-24 Thread David M. Cotter
my carbon app loads a couple plugins, which use Cocoa. each plugin implements AppController. should they? i get this in my log upon launch: objc[17568]: Class AppController is implemented in both /Library/Application Support/kJams/Burner.bundle/Contents/MacOS/Burner and /Library/Application

Setting the Line Height/ Line Spacing in an NSTextView.

2009-12-24 Thread Joshua Garnham
How would I set the Line Height/ Line Spacing in an NSTextView? e.g How tall each line is or how much space is between each line. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

[iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Henry McGilton (Boulevardier)
I bashed into a problem with NSKeyedArchiver trying to encode NSValue objects. I am using NSValue to wrap up CGPoint and CGSize structures, then doing an encodeObject: forKey: to encode the NSValue. I get this message: [NSKeyedArchiver encodeValueOfObjCType:at:]: this archiver canno

Re: NSTableview datasource issues

2009-12-24 Thread Greg Guerin
... The issue is that reloadData was not launching datasource methods, regardless. ... My concern though: how come Xcode does not flag issues with datasource? What is so strange is that [segmentTableView editColumn:k row:i withEvent:nil select:YES] was launching the datasource methods, w

Re: Core Data Anomaly?

2009-12-24 Thread Richard Somers
On Dec 23, 2009, at 9:25 PM, Henry McGilton (Boulevardier) wrote: On Dec 23, 2009, at 7:41 PM, Richard Somers wrote: In my application when I do the following something strange happens. Add a managed object to the store, save the file, then save the file as another name. Upon saving the f

Re: Adding sub menus programatically

2009-12-24 Thread Paul Bruneau
On Dec 24, 2009, at 4:25 AM, Michael Davey wrote: > Hi, > > I have googled around but have found nothing that can help me with this... I > have a menu in my application that I wish to add sub items to > programatically. I have the Menu itself connected up and I can add > NSMenuItems to it jus

Re: NSViewAnimationFadeInEffect broken in Snow Leopard?

2009-12-24 Thread Jim Correia
On Tue, Dec 22, 2009 at 7:58 PM, Kevin Wojniak wrote: > NSViewAnimationFadeInEffect doesn't seem to be working like it was in Leopard. I filed this as when SL was being seeded. If Regression: NSViewAnimation doesn't fade in view if initially hidden rdar://problem/7020352 If this affects you, yo

Re: Is there a warning for this?

2009-12-24 Thread Kyle Sluder
On Dec 24, 2009, at 3:26 AM, Brian Bruinewoud wrote: Is there some way to turn on a warning saying 'you are directly accessing an ivar where a (non-trivial) getter/setter exists'? I'm assuming you're targeting iPhone OS. If you can deal with not running your code in the simulator, switchi

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-24 Thread Nicolas Berloquin
> > Why not use IKImageBrowserView? It's a perfect match for grids of images > with titles. And faster too. > > Hi ! Well, I started out with IKImageBrowserView and it worked really well, but I needed to be able to save the whole thing as an image, and have real control over what happens with the i

Re: Is there a warning for this?

2009-12-24 Thread Alexander Spohr
Am 24.12.2009 um 09:26 schrieb Brian Bruinewoud: > All, > > I had this code: > > [[fetchedResultsController sections] count] > > Which always returned zero even thought sglite showed entries in the table. > When I put a break point on the getter, nothing happened. > > Amazingly, it dawn

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-24 Thread Mike Abdullah
On 24 Dec 2009, at 05:53, Nicolas Berloquin wrote: > Hi ! > > I must have killed the gods of array bindings in a previous life, > but I'm pulling my hair (or whatever's left), and, even though I > thought I got I, well, I really don't. > > I'm trying to do something quite simple. > I'd like to

Re: Call Cocoa from C++

2009-12-24 Thread Uli Kusterer
On 17.12.2009, at 20:24, Randall Meadows wrote: > Just like that. Put this into a .mm file, and it'll compile as > Objective-C++. You'll get a compiler warning that objcptr may not respond to > updateText, which you can eliminate by casting objcptr to the appropriate > class. By the way, nea

Adding sub menus programatically

2009-12-24 Thread Michael Davey
Hi, I have googled around but have found nothing that can help me with this... I have a menu in my application that I wish to add sub items to programatically. I have the Menu itself connected up and I can add NSMenuItems to it just fine, but seem at a loss to be able to add a sub menu and the

Re: Releasing Objects

2009-12-24 Thread Ken Thomases
On Dec 24, 2009, at 2:23 AM, John Engelhart wrote: > On Wed, Dec 23, 2009 at 12:05 PM, Bill Bumgarner wrote: > >> On Dec 22, 2009, at 11:49 PM, Franck Zoccolo wrote: >> >>> You said that you're using garbage collection. When using GC retain and >>> release messages do nothing, and the retain co

Re: [textView:shouldChangeTextInRanges:replacementStrings:] When does this type of event occur?

2009-12-24 Thread Iceberg-Dev
On Dec 23, 2009, at 10:58 PM, Dave DeLong wrote: In many apps, you can hold down the option key to change the cursor into a crosshair, and do a vertical selection. In addition, in apps like Pages, you can hold down the command key to do a non- contiguous selection. I'd imagine that both o

Is there a warning for this?

2009-12-24 Thread Brian Bruinewoud
All, I had this code: [[fetchedResultsController sections] count] Which always returned zero even thought sglite showed entries in the table. When I put a break point on the getter, nothing happened. Amazingly, it dawned on me pretty quickly that I needed this: [[self.fetchedRe

Re: Releasing Objects

2009-12-24 Thread John Engelhart
On Wed, Dec 23, 2009 at 12:05 PM, Bill Bumgarner wrote: > > On Dec 22, 2009, at 11:49 PM, Franck Zoccolo wrote: > > > You said that you're using garbage collection. When using GC retain and > > release messages do nothing, and the retain count is not used to > > determine when an objet can be fre