当用户在运行时使用应用程序关闭文档窗口时,我需要完全关闭我的应用程序.
目前,当他们单击窗口时,应用程序保持打开状态并显示其菜单栏.我在iOS上阅读了这篇文章,并在plist文件中添加了一个条目:http: //developer.appcelerator.com/question/40081/ios4---make-app-not-run-in-background
当用户关闭文档窗口时,关闭整个应用程序的最简单方法是什么?
我在我的表单上添加了一个NSButton,然后添加了声明和实现,但仍然无法正常工作.为什么不工作?提前致谢...
--------.h file--------
// Copyright (c) 2013 Company. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "HttpRequest.h"
#import "JSON.h"
#import "ChimpKit.h"
#define IS_REGISTERED @"IS_REGISTERED"
#define NORMAL_0 0
#define MAILCHIMP_1 1
@protocol RegistrationWindowDelegate
-(void) registrationDidFinished;
@end
@interface RegistrationWindowController : NSWindowController<HttpRequestDelegate,ChimpKitDelegate,NSWindowDelegate> {
IBOutlet NSButton *pushApp1; //Newly added NSButton for opening Web URL
IBOutlet NSWindow *registerWindow;
IBOutlet NSWindow *privacyWindow;
IBOutlet NSTextField *firstNameField, *lastNameField, *emailField, *verfilyEmailField;
IBOutlet NSPopUpButton *countryPopUpBtn;
IBOutlet NSButton *updateCheckBox, *promotionCheckBox;
IBOutlet NSMenuItem *registerMenuItem;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSButton *registerSoftware,*registerLater;
id<RegistrationWindowDelegate> delegate; …Run Code Online (Sandbox Code Playgroud) 我有一个崩溃/被黑客攻击的Joomla安装(仅限文件和文件夹)数据库没有受到损害,因此我的数据库处于良好状态.
我需要找出现场安装的Joomla版本是什么,所以我可以下载那个确切的版本包并在新位置重新安装.
DB中是否有表格或条目告诉我这个?
我有一个JoomlaPack备份,我还需要知道在破坏之前安装了哪个版本的Joomla Pack,所以我可以正常恢复.
谢谢
我点击了Modernize Project然后我得到了一些编译错误.(我拍了快照)
错误是:无法在@interface或@protocol中声明变量
这是复制和粘贴格式的代码.
#import <Cocoa/Cocoa.h>
#import "AJHBezierUtils.h"
@interface NSBezierPath (WBBezierPath)
NSBezierPath *flattenPath;
NSPointArray points;
int numPoints;
+(NSBezierPath*)roundedPath:(NSRect)aRect radius2:(int)rad2;
-(NSPoint ) getLinePoints:(NSPoint )p1 p2:(NSPoint)p2 withDistance:(int )pointDistance;
- (NSPoint *)pointsFromPathWithDistance:(int)distance numberOfPoints:(int *)numberOfPoints;
- (float)distanceBetweenPoint:(NSPoint)a andPoint:(NSPoint)b;
- (int)numberOfPoints;
Run Code Online (Sandbox Code Playgroud)
