2
голосов
2ответов
600 просмотров

How do I share user settings or files using the UserAppDataPath across builds?

Right now when I release a new build of my .NET app, the UserAppDataPath path points to a new folder that includes the build number. Documents and Settings\UserName\Application Data\Company\AssemblyName\1.0.0.0 I use this path as a convenient storage place for extended user UI setting f...

5
голосов
4ответов
1050 просмотров

What makes a good options/settings dialog box?

I was browsing the Worst UI You’ve Ever Used question, when I realized that many of them involved the options dialog of some application. This is obviously an area where a developer could get "lost" easily, since there are often a large number of options available which can be hard to organize. (...

2
голосов
2ответов
3160 просмотров

iPhone and NSUserDefaults

In my viewWillLoad: method I'm currently doing something along these lines: - (void)viewWillAppear:(BOOL)animated { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ( [defaults boolForKey:@"enabled_preference"] ) { ... } else { ... } [super vi...

7
голосов
1ответов
1314 просмотров

Can I stop applications from grabbing focus in OS X?

Applications stealing focus is on of my biggest UI pet peeves. There's rarely a good reason for an application that I'm not using to interrupt what I'm doing. Is there a way to disable focus-grabbing globally in OS X?

2
голосов
4ответов
1355 просмотров

Is this an abuse of the Settings Feature?

I've been storing collections of user settings in the Properties.Settings.Default object and using the Visual Studio settings designer (right-click on your project, click on Properties and then click on the Settings tab) to set the thing up. Recently, several users have complained that the data t...

3
голосов
2ответов
1281 просмотров

GlobalSettings ViewModel

I have some global settings that should come from the ViewModel and should be available to all DataTemplates across all UserControls. It includes things like GlobalButtonMargin, GlobalStrokeWidth or GlobalWorkspaceBackgroundColor. Those things are in the viewmodel because the user can edit these ...

1
голосов
1ответов
434 просмотров

C# mysettings run empty

I used the app.config Settings to set up my Config. class Program { static Settings settings = Settings.Default; static void Main(string[] args) { Program a = new Program(); a.init(); } public void init() { settings.CurrentArticleNr = settings.ArticleList[0];...

6
голосов
3ответов
7604 просмотров

XCode build settings for performance - iPhone apps

Is there any articles available online where can I find some tips on improving the iPhone application performance. I have read Apple docs on Memory Management and CPU cycles, but they are not very helpful. Also can someone suggest a few XCode settings that could improve the performance of the a...

5
голосов
3ответов
8201 просмотров

C# Custom user settings class not saving

I have the following class: [Serializable] [XmlRoot ( ElementName = "TextData", IsNullable = false)] public class TextData { private System.Drawing.Font fontColor; [XmlAttribute ( AttributeName = "Font" )] public System.Drawing.Font Font { get; set; } [XmlAttribute ( AttributeN...

1
голосов
2ответов
1514 просмотров

How to use application settings in .NET 3.5 Windows Forms

I am trying to store a type of System.Collection.Queue. The queue will only contain strings. The issue is that when I attempt to use it, it is always Null. Settings.Default.CorrectionsDescription.Enqueue(textString); I get the following error. Object reference not set to an instance of an...

0
голосов
1ответов
101 просмотров

xdebug: %H %R specifiers not working on Windows XP?

I want the xdebug.profile_output_name ini setting to accept the %H and/or %R specifiers on my Windows XP box. It seems xdebug doesn't do anything with them. Is this known behaviour for xdebug on Windows machines? Apache: 2.2.9 PHP: 5.2.10 xdebug: php_xdebug-2.0.5-5.2.dll Cheers

4
голосов
2ответов
2309 просмотров

Does web.config override any app.configs?

If I have a web application (with its own web.config) and a .dll it uses happens to have its own app.config which settings file wins when there is a conflict?

0
голосов
1ответов
236 просмотров

Changing the main view using the NSUserDefaults and the settings bundle

I have a game on the App Store, and for the next version I am working on having an option in the settings to use different skin. So for example, lets say I choose the basketball option. I would want the app to show the basketball .xib instead of the default view controller. How would I do th...

2
голосов
4ответов
666 просмотров

How can I access settings from a referenced assembly?

I have some values (basically constants) defined in assembly (class library) A. I would like to use these settings in assembly B. Is there a way to do this other than having the assembly A have some sort of wrapper classes around these settings or not ?

4
голосов
2ответов
5061 просмотров

Assembly specific settings not loading at runtime

I am developing a .NET 3.5 Windows Forms app. I have two projects, the UI and a Library. UI uses strongly typed settings that are stored, as usually, in the app.config file. I read them using UI.Properties.Settings class (generated by Visual Studio). Library uses its own strongly typed Settings...

8
голосов
3ответов
4813 просмотров

keep settings in database

In a reusable application (in which i don't want to change any code) i would like to change a SETTING var that the application uses (in its forms and maybe other parts) to be dynamic (update its contents from a db table). What would be the best approach to do that (a middleware maybe?) ?

0
голосов
1ответов
606 просмотров

Good way to store settings for an XNA screensaver?

What's the best way to store settings for a screensaver that happens to use XNA? i'm thinking of using a .settings file but i'm unsure how to read that from my XNA code...

5
голосов
3ответов
9513 просмотров

How to make designer generated .Net application settings portable

I've been looking at modifying the source of the Doppler podcast aggregator with the goal of being able to run the program directly from my mp3 player. Doppler stores application settings using a Visual Studio designer generated Settings class, which by default serializes user settings to the u...

0
голосов
1ответов
468 просмотров

VS 2005 line-spacing settings

I can see how to change the fonts and colors in the IDE. Is there an option available to incrase line-spacing in the IDE?

1
голосов
3ответов
1065 просмотров

Alternate (user-scoped) settings in a C# desktop application

1) I use Visual Studio 2008 (C#) 2) I want my desktop application to "remember" certain settings (preferences) for every user individually. 3) The application would use its own database of users (logins + passwords), so they have nothing to do with Windows accounts. How can I accomplish that? ...

2
голосов
4ответов
629 просмотров

Is storing user configuration settings on database OK?

I'm building a fairly large enterprise application made in python that on its first version will require network connection. I've been thinking in keeping some user settings stored on the database, instead of a file in the users home folder. Some of the advantages I've thought of are: the use...

25
голосов
4ответов
9125 просмотров

Base versus Active versus Deployment target

I know that parts of this question was asked in several variation but I want to make sure I got it right. Here are my assumptions and understandings which I want to know if they are correct before submitting. My application assumes features supported by all OS, and so I should: Set the Active...

30
голосов
8ответов
10351 просмотров

In Xcode, is there a way to disable the timestamps that appear in the debugger console when calling NSLog?

Xcode's debugger console makes it easy to see any debugging messages my app sends out using NSLog(), but it always sticks a timestamp prefix on them: 2009-08-30 04:54:48.128 MyApp[94652:a0f] some log message 2009-08-30 04:54:50.647 MyApp[94652:a0f] another log message ... I have no use for thi...

0
голосов
1ответов
1783 просмотров

Storing default value in Application settings (C#)

I am using Application settings to store and retrieve my GUI settings. For one of the setting Name - FileDirectory Type - String Scope - User Value - Problem?? i need to store Desktop folder path i.e Environment.GetFolderPath(Environment.SpecialFolder.Desktop) I can't set this in Settings...

1
голосов
2ответов
537 просмотров

Cross-user and cross-process shared settings

I have two processes - a user process and a root-level LaunchDaemon. I'd like both processes to have shared settings. I've tried getting this to work via a sqlite database, but have run into corruption issues. I've thought about using NSUserDefaults, but the NSGlobalDomain seems to only be glo...

3
голосов
3ответов
8127 просмотров

iPhone Settings

Is there any way to access the iPhone/iPod touch settings programatically ? Thanks. Biranchi

0
голосов
2ответов
79 просмотров

C# Detecting server setup

I'm writing a program that deals with the logs generated by the clients server. How can I detect where the user is storing them? It feels invasive to search all files, but what if they're being stored outside of the root. Is this acceptable, what if I make the user click "detect" first? Regardles...

0
голосов
1ответов
418 просмотров

Settings.settings - How do I change from one environment to another?

I have a Web App Project (compiled DLL) along with 3 DLL projects. In my DLL projects I am using the Properties/Setting.settings to extract mutable settings from the DLL. However, when I publish from environment to the next I have not figured how to change the Settings.settings values for the n...

21
голосов
4ответов
24256 просмотров

How do I save/serialize a custom class to the settings file?

I have a small class that holds two strings as follows: public class ReportType { private string displayName; public string DisplayName { get { return displayName; } } private string reportName; public string ReportName ...

34
голосов
2ответов
20671 просмотров

git whitespace woes

Conflicts on whitespace suck Whitespace has ended up being a horrible pain for me while using git. git config apply.whitespace=strip seems to highten your chances of getting conflicts (as you strip unneeded whitespace and then other collaborators see the stripped whitespace as a change to the...