• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom cell with Bindings having strange prints in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom cell with Bindings having strange prints in NSTableView


  • Subject: Re: Custom cell with Bindings having strange prints in NSTableView
  • From: "Miguel Coxo" <email@hidden>
  • Date: Wed, 27 Feb 2008 15:30:54 +0000

I have found the reason for the strange print:
[super drawInteriorWithFrame: cellFrame inView: controlView];

was left there from a previous version, i still have the random crashes ...

On Wed, Feb 27, 2008 at 1:55 PM, Miguel Coxo <email@hidden> wrote:

> Hello, i have a binding setup in IB like this:
>
> http://mt15.quickshareit.com/share/picture1f06b0.png
>
> where the cellData is a function in the class CPDownload:
>
> - (id) cellData
> {
> return self;
> }
>
> Then there is the CPDownloadQueue that has a NSArray with CPDownloads, and
> updates them like this:
>
> self.downloads = [downloads arrayByAddingObject: download];
>
> Im getting 2 problems, first im getting this in my NSTableView ( removing
> my custom drawing functions):
>
> http://mt14.quickshareit.com/share/picture23dd4d.png
>
> And im getting random crashes like this one:
>
> *2008-02-27 13:38:28.746 CelerPeal[7986:4e07] Cannot remove an observer
> <NSTableBinder 0x104a860> for the key path "cellData" from <CPHTTPDownload
> 0x1066a90> because it is not registered as an observer.*
>
> *2008-02-27 13:38:28.756 CelerPeal[7986:4e07] *** Terminating app due to
> uncaught exception 'NSRangeException', reason: 'Cannot remove an observer
> <NSTableBinder 0x104a860> for the key path "cellData" from <CPHTTPDownload
> 0x1066a90> because it is not registered as an observer.'*
>
> *2008-02-27 13:38:28.758 CelerPeal[7986:4e07] Stack: (*
>
> *    2515173963,*
>
> *    2443694331,*
>
> *    2515173419,*
>
> *    2515173482,*
>
> *    2447820429,*
>
> *    2447819876,*
>
> *    2497527775,*
>
> *    2497526877,*
>
> *    2499729091,*
>
> *    2499760919,*
>
> *    2499760497,*
>
> *    2499759889,*
>
> *    2447816078,*
>
> *    2447359557,*
>
> *    2497528158,*
>
> *    2497527903,*
>
> *    2499739272,*
>
> *    2499751144,*
>
> *    2499750152,*
>
> *    2499745122,*
>
> *    2447816078,*
>
> *    2447277858,*
>
> *    20549,*
>
> *    20637,*
>
> *    2447703578,*
>
> *    2447703425,*
>
> *    2526685110,*
>
> *    2526673184,*
>
> *    2526671065,*
>
> *    2514675246,*
>
> *    2514677016,*
>
> *    2447506197,*
>
> *    19442,*
>
> *    2447291821,*
>
> *    2447290708,*
>
> *    2470685781,*
>
> *    2470685458*
>
> *)*
>
>
> But not only related to cellData, i also get similar crashes from fields
> in CPDownload: status, downloadedBytes ...
>
>
> I have no clue why this is happening, maybe my copyWithZone is wrong?
>
>
> - (id)copyWithZone:(NSZone *)zone
> {
> CPDownload *copy = [[CPDownload allocWithZone: zone] init];
>  copy.urlString = self.urlString;
>  copy.fileName = self.fileName;
>  copy.errorMessage = self.errorMessage;
>  copy.status = self.status;
>  copy.segments = self.segments;
>  copy.progress = self.progress;
>  copy.speed = self.speed;
>  copy.size = self.size;
>  copy.segmentSize = self.segmentSize;
>  copy.downloadedBytes = self.downloadedBytes;
>  copy.numberOfSegments = self.numberOfSegments;
>  copy.dateAdded = self.dateAdded;
>  copy.persistenceType = self.persistenceType;
>  return copy;
> }
>
> Any suggestions will be appreciated.
>
>
> Ty, Miguel Coxo
>
>
>


--
Cumprimentos, Miguel Coxo.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Custom cell with Bindings having strange prints in NSTableView (From: "Miguel Coxo" <email@hidden>)

  • Prev by Date: Custom cell with Bindings having strange prints in NSTableView
  • Next by Date: Re: Can CoreData return only unique results of an attribute
  • Previous by thread: Custom cell with Bindings having strange prints in NSTableView
  • Next by thread: Re: Custom cell with Bindings having strange prints in NSTableView
  • Index(es):
    • Date
    • Thread