Opened 10 years ago

Closed 10 years ago

#508 closed enhancement (fixed)

ns-data objects should not display their contents by default

Reported by: rongarret Owned by:
Priority: normal Milestone:
Component: Objective-C Bridge Version: 1.3
Keywords: Cc:

Description

The default print method for ns-mutable-data (and presumably ns-data as well) displays the actual contents of the data object. This can result in hijacking the listener if a large data object is inadvertently printed, or returned from a top-level form. It would be better if the print method (not necessarily the princ method) for ns-data only displayed the size, not the actual contents.

In the alternative, the print method for ns-data should respect *print-length*. But this is probably harder and not really necessary.

Change History (1)

comment:1 Changed 10 years ago by rme

  • Resolution set to fixed
  • Status changed from new to closed

In recent trunk sources (r12176, r12207) there's now *objc-description-max-length*. This parameter (which is 1024 by default) limits #/description output to that many characters.

Note: See TracTickets for help on using tickets.