Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7005963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:25:03+00:00 2026-05-27T21:25:03+00:00

Why not just use a regular @property instead of transient? I don’t care about

  • 0

Why not just use a regular @property instead of transient? I don’t care about supporting undo.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:25:04+00:00Added an answer on May 27, 2026 at 9:25 pm

    If you don’t need undo, there’s a good chance a plain unmodeled @property is better. When explicitly modeling a property as transient, the main differences are:

    • Setting the property marks the object as dirty, even though nothing would actually be saved;
    • The property is cleared when the object turns into a fault;
    • Weird things can happen when merging changes, depending on your chosen merge strategy.

    Some experiments working out the semantics of a transient modeled property might be found at https://web.archive.org/web/20160423093331/http://www.2pi.dk/tech/cocoa/transient_properties.html by Jakob Stoklund Olesen. Because that’s a dying archive.org link, I’ll excerpt some choice tidbits:

    • “A transient property … You should be thinking of it as something whose value is nil in the persistent store.“

    • “So what are transient properties good for? … [for] any property you don’t need to be stored, but would like undo support for.”

    • “Another use … is caching for properties that can’t be stored. Cross-store relationships and attributes with unsupported types are the typical examples. Before saving, you convert the property into something that can be stored, and write it to a binary ‘shadow’ attribute.”

    • “It is better to imagine transient properties as representing ‘something that is nil in the persistent store’, than the common ‘fancy instance variables with undo’.”

    A good article and I wish Jakob had left it up.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For just regular use in my PHP code, that is. Not like I'm going
When creating a Magento multistore, can the 2nd store not just use a directory
How can I get all differences, not just one? I want to use the
I just started to use doxygen and may not be familiar with all available
I'm just learning to use lazy sequences in Clojure, and I'm not sure what
i'm just starting to use asp.net mvc.. since i'm not familiar with it, i
I just read in Code Complete that you should not use exceptions for flow
I just wonder if it is possible to only use CSS but not javascript
I have just been involved in writing an application that does not use Doctype's
customers does not want to allow user to use back or forward button. Just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.