~ubuntu-branches/ubuntu/vivid/projectcenter.app/vivid

« back to all changes in this revision

Viewing changes to Modules/Projects/Application/Resources/AppController.m

  • Committer: Bazaar Package Importer
  • Author(s): Yavor Doganov
  • Date: 2010-06-03 16:04:52 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100603160452-dcsmkjwdtwxuitdo
Tags: 0.5.3~20100601-1
* New upstream release.
* debian/compat: Set to 7.
* debian/control (Section): Change to `gnustep'.
  (Build-Depends): Require debhelper >= 7, remove version constraints
  for libgnustep-gui-dev (obsolete).
  (Depends): Add ${gnustep:Depends}.
  (Standards-Version): Compliant with 3.8.4 as of this release.
  (Vcs-Arch): New field.
  (Description): Do not praise NextStep.
* debian/rules: Export GNUSTEP_MAKEFILES and get rid of gs_make.
  (OPTFLAG): No longer define; rework noopt handling to be compatible
  with gnustep-make/2.4.x (Closes: #581976).
  (build-stamp): Pass GDB=/usr/bin/gdb for the PCDefaultDebugger
  define.
  (install): Replace dh_clean -k with dh_prep.
  (binary-arch): Adjust dh_installchangelogs' argument.  Rework the
  FHS_ME_HARDER snippet; PC's supporting executables are no longer
  installed as Bundles.
* debian/patches/05_link-libs.dpatch: Update; the fix was merged
  upstream, but now -lm is required as well.
* debian/patches/10_bundles-install-dir.dpatch: Remove; obsolete with
  the new way of FHS-compliance handling.
* debian/links: Delete; no longer needed.
* debian/menu: Adjust command.
* debian/source/format:
* debian/README.source:
* debian/preinst: New file.
* debian/copyright: Bump copyright years, add more upstream authors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
2
   Project: $PROJECTNAME$
3
3
 
4
 
   Copyright (C) $YEAR$ Free Software Foundation
5
 
 
6
4
   Author: $FULLUSERNAME$
7
5
 
8
6
   Created: $DATE$ by $USERNAME$
9
7
   
10
8
   Application Controller
11
 
 
12
 
   This application is free software; you can redistribute it and/or
13
 
   modify it under the terms of the GNU General Public
14
 
   License as published by the Free Software Foundation; either
15
 
   version 2 of the License, or (at your option) any later version.
16
 
 
17
 
   This application is distributed in the hope that it will be useful,
18
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20
 
   Library General Public License for more details.
21
 
 
22
 
   You should have received a copy of the GNU General Public
23
 
   License along with this library; if not, write to the Free
24
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
25
9
*/
26
10
 
27
 
#include "AppController.h"
 
11
#import "AppController.h"
28
12
 
29
13
@implementation AppController
30
14
 
31
 
+ (void)initialize
 
15
+ (void) initialize
32
16
{
33
17
  NSMutableDictionary *defaults = [NSMutableDictionary dictionary];
34
18
 
40
24
   *
41
25
   */
42
26
  
43
 
  [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
 
27
  [[NSUserDefaults standardUserDefaults] registerDefaults: defaults];
44
28
  [[NSUserDefaults standardUserDefaults] synchronize];
45
29
}
46
30
 
47
 
- (id)init
 
31
- (id) init
48
32
{
49
33
  if ((self = [super init]))
50
34
    {
52
36
  return self;
53
37
}
54
38
 
55
 
- (void)dealloc
 
39
- (void) dealloc
56
40
{
57
41
  [super dealloc];
58
42
}
59
43
 
60
 
- (void)awakeFromNib
 
44
- (void) awakeFromNib
61
45
{
62
 
  [[NSApp mainMenu] setTitle:@"$PROJECTNAME$"];
63
46
}
64
47
 
65
 
- (void)applicationDidFinishLaunching:(NSNotification *)aNotif
 
48
- (void) applicationDidFinishLaunching: (NSNotification *)aNotif
66
49
{
67
50
// Uncomment if your application is Renaissance-based
68
 
//  [NSBundle loadGSMarkupNamed:@"Main" owner:self];
 
51
//  [NSBundle loadGSMarkupNamed: @"Main" owner: self];
69
52
}
70
53
 
71
 
- (BOOL)applicationShouldTerminate:(id)sender
 
54
- (BOOL) applicationShouldTerminate: (id)sender
72
55
{
73
56
  return YES;
74
57
}
75
58
 
76
 
- (void)applicationWillTerminate:(NSNotification *)aNotif
77
 
{
78
 
}
79
 
 
80
 
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName
81
 
{
82
 
}
83
 
 
84
 
- (void)showPrefPanel:(id)sender
 
59
- (void) applicationWillTerminate: (NSNotification *)aNotif
 
60
{
 
61
}
 
62
 
 
63
- (BOOL) application: (NSApplication *)application
 
64
            openFile: (NSString *)fileName
 
65
{
 
66
  return NO;
 
67
}
 
68
 
 
69
- (void) showPrefPanel: (id)sender
85
70
{
86
71
}
87
72