My app delegate (Mac OS X) looks like this:
#import
@interface MyAppDelegate : NSObject
But Xcode (4.5.1) complains: Cannot find protocol declarations for
"WebPolicyDelegate".
What am I doing wrong?
Gerriet.
___
Cocoa-dev mailing list (Cocoa-
I have some old code that would try to open a file using
-openDocumentWithContentsOfURL:display:error:, if it existed and if it does not
exist, would call -makeDocumentWithContentsOfURL:ofType:error: on that same
URL, in an effort to create the missing document.
The code clearly expected to rec
On Nov 1, 2012, at 00:53 , Rick Mann wrote:
> I have some old code that would try to open a file using
> -openDocumentWithContentsOfURL:display:error:, if it existed and if it does
> not exist, would call -makeDocumentWithContentsOfURL:ofType:error: on that
> same URL, in an effort to create t
On Nov 1, 2012, at 1:59 , Quincey Morris
wrote:
> Very roughly, the 'make' method is used just to create a NSDocument object.
> The 'open' document does higher level stuff like bailing if a document object
> already exists for the file, or invoking the 'make' method and creating
> window con
Hi,
I'm trying to address a performance problem regarding transparent NSWindows
during resize.
I have created a new Cocoa Application from Xcode's templates, overriding both
NSWindow and NSView as follows:
@implementa
Hi,
I have this code in my app:
- (void)keyDown:(NSEvent *)theEvent
{
unichar oneChar;
NSString*theChars = [theEvent charactersIgnoringModifiers];
if ( 0 == theChars.length ) {
return;
}
oneChar = [theChars
WebPolicyDelegate is still not a formal protocol. There is nothing for you to
declare conformance to.
On 1 Nov 2012, at 07:44, "Gerriet M. Denkmann" wrote:
>
> My app delegate (Mac OS X) looks like this:
>
> #import
>
> @interface MyAppDelegate : NSObject WebPolicyDelegate>
>
> Bu
Well that sounds an impossible problem, but might not be. Give us the crash
report too.
On 1 Nov 2012, at 12:11, Antonio Nunes wrote:
> Hi,
>
> I have this code in my app:
>
> - (void)keyDown:(NSEvent *)theEvent
> {
> unichar oneChar;
> NSString*theChars = [theEven
Corbin, is it possible to make the background color pattern image stretch
the picture across the window, instead of repeating it?. If not, is dealing
with borderless window the only way to get this functionality (like, having
a custom colored title bar, and white title bar text)?
Thank you
2012/
On 1 Nov, 2012, at 15:24 , Mike Abdullah wrote:
> Well that sounds an impossible problem, but might not be. Give us the crash
> report too.
12/10/2012 12:41:10: -[__NSCFConstantString characterAtIndex:]: Range or index
out of bounds
12/10/2012 12:41:10: (
0 CoreFoundation
On Thu, 1 Nov 2012 05:17:09 +0100, Martin Hewitson said:
>I did include a description on the resubmit. Seems it didn't help. I wrote:
>
>"I'm using this entitlement to allow the app to send documents by mail
>from within the app. On 10.8 I can use the new
>com.apple.security.scripting-targets but
On Nov 1, 2012, at 3:37 PM, Sean McBride wrote:
> On Thu, 1 Nov 2012 05:17:09 +0100, Martin Hewitson said:
>
>> I did include a description on the resubmit. Seems it didn't help. I wrote:
>>
>> "I'm using this entitlement to allow the app to send documents by mail
>> from within the app. On 10
On 1 Nov 2012, at 14:37, Antonio Nunes wrote:
> On 1 Nov, 2012, at 15:24 , Mike Abdullah wrote:
>
>> Well that sounds an impossible problem, but might not be. Give us the crash
>> report too.
>
> 12/10/2012 12:41:10: -[__NSCFConstantString characterAtIndex:]: Range or
> index out of bounds
On Oct 31, 2012, at 10:02 PM, Rick Mann wrote:
> I'm not sure what's going on here. But I've got an iOS project that declares
> (but does not define) some "primitiveFoo" methods in my NSManagedObject
> subclass, and an OS X project that does so as well. However, the iOS project
> doesn't emit
Hi there,
I want to get NowJS working well with my app, I know I have to create a socket
with socket.io like NowJS do, I just create a NowJS code and translate it into
ObjC but it seems that it doesn't work at all… Do you have any idea about how
to do it ?
Cordially,
Vavelin Kévin
Twitter | Bl
On 1 Nov 2012, at 9:55 AM, Keary Suska wrote:
> This is normal and expected, as it is a default warning (at least on OS X).
> What is the problem, exactly? There is no value whatsoever that I know of to
> declare primitive accessors if you don't intend to implement them.
> Furthermore, you sho
On 1 Nov, 2012, at 15:50 , Mike Abdullah wrote:
> Well it all looks like your code shouldn't be able to give the above
> exception. To check, there's no other calls to -characterAtIndex: in the code
> you omitted? And the code you pasted is from ANBorderedTextView?
No other calls to characterA
On Nov 1, 2012, at 9:24 AM, Fritz Anderson wrote:
> On 1 Nov 2012, at 9:55 AM, Keary Suska wrote:
>
>> This is normal and expected, as it is a default warning (at least on OS X).
>> What is the problem, exactly? There is no value whatsoever that I know of to
>> declare primitive accessors if y
Hello All,
Is it possible to write add-ins for Microsoft Outlook 2011 on Mac?
I want to want to add a button on the main toolbar of MS Outlook on Mac and
also want to customize the behavior of existing buttons - like the Send button.
Just wanted to know is this possible ?
After searching I foun
As far as I know Microsoft did not expose addin APIs for Office for Mac.
There may be a chance to get the SDK under NDA, if you convince guys from
Microsoft that your plugin is useful and does not repeat the existing
functionality (at least that's how it was for Microsoft Word 2008/2011).
You could
On Oct 31, 2012, at 7:25 PM, Nick wrote:
> Thanks Corbin, it works great (unfortunately I can't draw the gradient
> depending on the window size (so it's always white on top and black on
> bottom, no matter how high the window is, for example), but I guess that
> still gives possibilities for
hi nick,
No; you can't stretch it, but you can create a pattern image that is tall, and
appears to repeat or stretch. Other than that, the only official way to
customize a window is via a borderless custom window.
However, please do log bugs requesting that AppKit provide an easy way to
custom
On Nov 1, 2012, at 8:24 , Fritz Anderson wrote:
> Declare them in a category so the compiler won't complain that the main
> implementation doesn't contain their definitions.
Ah! That's what I did wrong. I had also moved some property declarations to the
.mm file, and put them in the same cate
Done; rdar://12617674 I also included a suggestion for a hasDarkBackground
flag that'll switch to buttons like QuickTime Player uses because the shadow on
the default ones looks weird on dark backgrounds.
On Nov 1, 2012, at 11:12 AM, Corbin Dunn wrote:
> hi nick,
>
> No; you can't stretch it,
I have an IMP for a method - in Xcode debugging window, I can select the var,
and make it display a description; I get something like this in the console:
(IMP) ImpVarName = 0x0001012a1130 (FrameWorkName`-[ClassName methodName]
at ClassName.m:125)
This is perfect, but I can't figure out how
Surely you could make the specific email client a Preference the user sets
once, and then handle the act of sending with one menu item? Not any help with
the sandbox issue however...
Sent from my iCapsule somewhere in orbit
On 2012-11-01, at 7:43 AM, Martin Hewitson wrote:
>
> On Nov 1, 201
On Nov 1, 2012, at 3:44 PM, Sebastien Boisvert wrote:
> I have an IMP for a method - in Xcode debugging window, I can select the var,
> and make it display a description; I get something like this in the console:
>
> (IMP) ImpVarName = 0x0001012a1130 (FrameWorkName`-[ClassName methodName]
>
That could get really tricky given the new rules with scripts and
sandboxing. The scripts folder cannot be written to by your app
(AFAIK, it can only be created and read). App would have to direct the
customer to copy in the appropriate script into your script folder.
It's about as clunky a process
Hi all!
I have view-based NSTableView with 10 columns. Each cell is NSTableCellView
with NSTextField on it (default). Auto-layout is OFF. OSX 10.8.2.
Table has 1000 rows. Datasource is AppDelegate with only one method:
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
return 1
On 02/11/2012, at 11:14 AM, Dmitriy Balakirev
wrote:
> Datasource is AppDelegate with only one method:
A datasource has two mandatory methods. How does it get its data?
--Graham
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do n
Nothing. It is just example.
02.11.2012, в 4:29, Graham Cox написал(а):
>
> On 02/11/2012, at 11:14 AM, Dmitriy Balakirev
> wrote:
>
>> Datasource is AppDelegate with only one method:
>
>
> A datasource has two mandatory methods. How does it get its data?
>
> --Graham
>
>
__
On 02/11/2012, at 12:35 PM, Dmitriy Balakirev
wrote:
> Nothing. It is just example.
So it does have two methods? Or have you left one out? If you have, it won't
work properly, so that's why I'm asking - it could be your problem.
Show your REAL code.
--Graham
___
- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
return 1000;
}
is the only code added to the cocoa application template. Then I drop table to
window, set number of columns to 10 and connect app delegate as table
datasource.
But question not about how to implement nstableview da
On 02/11/2012, at 1:08 PM, Dmitriy Balakirev
wrote:
> - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {
> return 1000;
> }
> is the only code added to the cocoa application template. Then I drop table
> to window, set number of columns to 10 and connect app delegate as table
>
Hi all, I'm having trouble figuring this out.
I have a logging function thus:
voidGCLogObjCMethod( id obj, SEL selector, NSUInteger lineNumber,
NSString* tag, NSString* format, ... );
I'd like to be able to wrap this using a macro that automatically supplies the
object, selector, l
How your explain that:
After run that simple app works improperly. Then, I press Home button - now
that same app works very properly?
What magic happens when I press Home (End)?
In real code the scroll behavior is exactly the same.
02.11.2012, в 6:14, Graham Cox написал(а):
>
> On 02/11/2012
On Nov 1, 2012, at 7:15 PM, Graham Cox wrote:
> Hi all, I'm having trouble figuring this out.
>
> I have a logging function thus:
>
> voidGCLogObjCMethod( id obj, SEL selector, NSUInteger lineNumber,
> NSString* tag, NSString* format, ... );
>
> I'd like to be able to wrap this usi
I'm trying to copy NSManagedObjects using -dictionaryWithValuesForKeys and
-setValuesForKeysWithDictionary:. Some of my attributes are C++ objects (simple
ones). For example:
class
Rect : public CGRect
{
};
@interface
MyObj : NSManagedObject
@property (nonatomic, assign) Rectboun
On Nov 1, 2012, at 10:15 PM, Graham Cox wrote:
> Hi all, I'm having trouble figuring this out.
>
> I have a logging function thus:
>
> voidGCLogObjCMethod( id obj, SEL selector, NSUInteger lineNumber,
> NSString* tag, NSString* format, ... );
>
> I'd like to be able to wrap this usi
Ah, thanks guys! That works great :)
--Graham
On 02/11/2012, at 1:46 PM, Gwynne Raskind wrote:
> #if LOGGING
> #define GCLOGOC(format, ...) GCLogObjCMethod(self, _cmd, __LINE__,
> NSStringFromClass([self class]), format, ## __VA_ARGS__)
> #else
> #define GCLOGOC(format, ...)
> #endif
>
> --
What Gwynne said, but with one potential change, *some* versions of GCC require
a space before the last comma in order for it to be omitted if there are 0
variable args, as in:
#define GCLOGOC(format, ...) GCLogObjCMethod(self, _cmd, __LINE__,
NSStringFromClass([self class]), format , ## __VA_A
My somewhat older project has a couple of userInfo entries on each of the
attributes in the Core Data model:
com.apple.syncservices.AutomaticResolutionPolicy = {
PreferredClientType = app;
PreferredRecord = Truth;
}
com.apple.syncservices.ExcludeFromDataChangeAlert = NO
Where did these c
Huh. I made this small test case to narrow down the issues. I've noticed
something. In my larger project, setBounds: gets called and its parameter shows
in the debugger as a Graphics::Rect&. But in my sample project, it's the
(correct) Graphics::Rect.
(Note in the sample below I omitted the "Gr
One more thing…this all seems to work fine for Graphics::Point-typed attributes:
namespace Graphics
{
class Point : CGPoint
{
};
}
On Nov 1, 2012, at 23:36 , Rick Mann wrote:
> Huh. I made this small test case to narrow down the issues. I've noticed
> something. In my larger project, setBou
44 matches
Mail list logo