• 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: Changing properties inside a relationship entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing properties inside a relationship entity


  • Subject: Re: Changing properties inside a relationship entity
  • From: Andrew Merenbach <email@hidden>
  • Date: Sat, 22 Mar 2008 18:21:07 -0700

Hi, Malcom,

Note that in such cases, it is often easier to write:

	NSString *tmp = [[[view textStorage] string] copy];

or, if your new string should be mutable:

	NSMutableString *tmp = [[[view textStorage] string] mutableCopy];

Cheers,
	Andrew


On Mar 22, 2008, at 11:45 AM, malcom wrote:

Ok I've just found a solution.
Make a new NSString object with a copy of the textview string and pass it.


NSString *tmp = [[NSString alloc] initWithString: [[view textStorage] string]];
_______________________________________________


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

_______________________________________________

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: 
 >Changing properties inside a relationship entity (From: malcom <email@hidden>)
 >Re: Changing properties inside a relationship entity (From: malcom <email@hidden>)
 >Re: Changing properties inside a relationship entity (From: malcom <email@hidden>)

  • Prev by Date: CoreAnimation Memory Use/Eating Memory
  • Next by Date: Re: Help with this code
  • Previous by thread: Re: Changing properties inside a relationship entity
  • Next by thread: [iPhone] NSTableView and NSIndexPath
  • Index(es):
    • Date
    • Thread