我已经重新绘制了NSWindow,现在当我启动我的应用程序时,控制台中有一个警告说NSWindow does not support utility styleMask 0x10.我怎么能摆脱这个警告?
任何的想法?
谢谢!

在Xcode中,有时文件名右侧有一个?,一个A或M一个框.这些图标的含义是什么?它们会对项目如何在模拟器或设备上编译和运行产生影响吗?
我正在尝试使用cocoa脚本桥创建一个新的电子邮件,但似乎无法让它工作.我到目前为止:
MailApplication *mail = [SBApplication applicationWithBundleIdentifier:@"com.apple.Mail"];
MailOutgoingMessage *emailMessage = [[[[mail classForScriptingClass:@"outgoing message"] alloc] initWithProperties:[NSDictionary dictionaryWithObjectsAndKeys: [saveFileName substringToIndex:[saveFileName length]-4], @"subject", @"something about app.", @"content", nil]] autorelease];
// add the object to the mail app
[[mail outgoingMessages] addObject: emailMessage];
emailMessage.visible = YES;
if ( [FileFullName length] > 0 ) {
MailAttachment *theAttachment =
[[[mail classForScriptingClass:@"attachment"] alloc]
initWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
FileFullName, @"fileName",nil]];
// add it to the list of attachments
[[emailMessage.content attachments] addObject: theAttachment];
[theAttachment release];
}
Run Code Online (Sandbox Code Playgroud)
当我尝试设置visible属性时,我收到了错误消息:
-[SBProxyByClass setVisible:]: object has not been …Run Code Online (Sandbox Code Playgroud)