readonly

Does @property (readonly, retain) have a meaning ?

XCode accepts it. But will retain be applied when I internally set the property (no setter outside since readonly but when I initialize the value in a class method) ? Regards, Apple92 ...

How do i make some of my datagridcolumns non editable or readonly if my flex datagrid is editable

How do i make some of my datagridcolumns non editable or readonly if my flex datagrid is editable? ...

How can read-only collections be mapped in JPA / Hibernate that don't cause DB updates.

Hi all, is it possible to create relations in hibernate / jpa that are fetched when the containing entity is fetched but will never ever result in any db updates, when the containing entity is saved? I'll try to make the requirement clear by an example. I have a simple entity B @Entity public class B { private int bId; @Id ...

Can I make PSTextFieldSpecifier be read-only

Is there any way I could force PSTextFieldSpecifier be read-only in iPhone Settings view? It has auto-scaling font size, center justification and without title looks just perfect for copyright notice. The problem is that it's editable text. Even when if I would reset value each time app starts up, it's still pretty not-too-nice behaviou...

Remove jquery datepicker from a html control

I have a datepicker on a textbox txtDate. I need to remove the datepicker, if a particular checkbox chkBox is checked. And to reapply the datepicker if the checkbox is not checked. I tried making the textbox readonly, but datepicker is still working. How to do this. EDIT: On the same checkbox event, I also want to make a select (drop...

Make the file author property readonly - MS-Word 2007

Hi All, I just want to know is there a way of locking a MS-Word files author, while keeping the document editable. in MS-Word 2007 currently you crate a document save the document right click on the document and go to properties go to summary tab it shows the 'author' of the file and it can be editable. what I want to do is, lock ...

Can I safely clean up after a readonly object field?

Let's say I have a class with a object field. When Dispose() is called I would like to clear the reference to that object. The private field can only be set once, so ideally I would like it to be readonly, but if it is readonly there is a compile time error when I try to release the reference to the object during Dispose(). Ideally I wou...

In Django, how can I make a field read only the first time a form is loaded?

I have model form and I need to have one of the fields be read only until after it's saved. I haven't figured out a good way to do this, and below is what I have in my admin.py. class RequestForm(forms.ModelForm): trac = forms.URLField(min_length=400, required=False) impacted_users = forms.ModelMultipleChoiceField(queryset=Grou...

Open a file in a tab in vim in readonly mode

I'm aware of opening files in readonly mode from shell using vim -R, but how to open a file from inside vim in a separate tab (:tabe <filename>) in readonly mode? Thanks for your time. ...

Preventing Nhibernate from persisting a specific collection in a class.

Hello Everyone, I have a Sponsor object which has a collection that looks like this... public virtual IDictionary<SettingId, object> SettingValueDefaults { get; set; } These are actually being pulled as a subset of a larger table. I need to be able to read from these, and that is working correctly. However, I would like to be able...

C# - updating database file in C:/ or C:/folder causes fatal readonly file error

Hey, I have a database file in my C:/ directory (which I have also tried putting in the C:/CustomerApp_C directory). I can run the application and it loads the data just fine. However when I change some data and click Save it comes up with "Unhandled exception has occurred in your application. bla bla bla"... "Failed to update database ...