Ahmed-Ali / RealmObjectEditor

Realm Object Editor is a visual editor where you can create your Realm entities, attributes and relationships inside a nice user interface. Once you finish, you can save your schema document for later use and you can export your entities in Swift, Objective-C and Java.
MIT License
424 stars 47 forks source link

Default values disappear from field #3

Closed batlanyard closed 9 years ago

batlanyard commented 9 years ago

Great tool! Noticed that when you set a default value for a key, the "Default" checkbox is checked but the value "disappears" from the UI.

On export, the default values are defined in the entity though.

Nice work overall and very useful. Thanks!

screen shot 2015-02-04 at 4 25 12 pm screen shot 2015-02-04 at 4 25 33 pm

Ahmed-Ali commented 9 years ago

Thanks for reporting it @batlanyard. Will publish the fix tomorrow night (23:00 GMT) max.

Hope you are enjoying it :)

Ahmed-Ali commented 9 years ago

Strangely enough I have tried to reproduce it many times but I could not!

batlanyard commented 9 years ago

I noticed it when editing a model I'd already created. Maybe it's the reopen to edit?

(edited to delete 2nd comment - my mistake)

Ahmed-Ali commented 9 years ago

Hi @batlanyard, sorry for the late reply. I also tried to reproduce it using a saved document but could not reproduce. If it is possible to list the steps which lead to the bug please do, maybe there is something I am missing.

batlanyard commented 9 years ago

Sorry for the delay as well! Here's a short screen capture of what I'm seeing. The default values are not shown once set (in the space next to the default checkbox):

https://db.tt/k4ecsbs6

Ahmed-Ali commented 9 years ago

Hi @batlanyard, You can try the latest version (0.0.3) it should be fixed now.