On Tue Jan 04 2011 13:56:58 GMT+1000 (PGT) Matt Neuburg wrote:
You don't have a method called setStickyModifiers:, do you? If so, it will be
called at nib-loading time with the button instance as parameter. When an
instance variable isn't set to the instance pointed to by the corresponding
ou
-drawInRect: variant is designed for matching the field editor layout.
-drawWithRect: variant is the base and should be used over the other two.
Aki Inoue
On 2011/01/03, at 16:45, George Nachman wrote:
> On Mon, Jan 3, 2011 at 1:47 PM, Wim Lewis wrote:
>>
>> On 2 Jan 2011, at 1:23 PM, Geor
Roland,
Yes, I just discovered that I was creating the object template from the Mac OS
X section even though I created the project from iOS. Now, I have no idea how
that template section got referenced but it seems to be that the template
selection should be automatically switched to iOS if yo
Which template are you using to add the object ...
There's two sets, the ones at the top of the list are for iOS, the ones at the
bottom are for OS X, you want to add an object from the top set.
On 04-Jan-2011, at 12:20 PM, Phil Hystad wrote:
> I just did it again. I create a new project, iO
I just did it again. I create a new project, iOS View Application for iPad.
Do an immediate build and it works and runs fine (with blank view of course).
The, I add a class, which I called MyModel just for the heck of it. It is
based on NSObject and it imports Cocoa.h as generated by the tem
ipad? That's iOS and those templated files should include
not , did you pick the wrong file type
from the template.
On 04-Jan-2011, at 1:47 AM, Phil Hystad wrote:
> I just started playing around with Xcode and Cocoa again and doing a few
> little iPad apps. When I add a class to the project
On Mon, Jan 3, 2011 at 1:47 PM, Wim Lewis wrote:
>
> On 2 Jan 2011, at 1:23 PM, George Nachman wrote:
>> I'm using CGContextShowGlyphsWithAdvances to render fixed-width text
>> because it is very fast. If a glyph is missing, I use
>> CTFontCreateForString() to pick a better font, and that usually
I just started playing around with Xcode and Cocoa again and doing a few little
iPad apps. When I add a class to the project, (simple NSObject based class)
the .h file includes the import for . But, the build and
compile fails because it says this header file is not found.
This happens even i
I'm writing an email analysis type tool and would like recommendations on a
library to handle IMAP and POP accounts. I'm more interested in getting the
meta data for existing messages and mailboxes and less in sending messages.
I've searched google and have found Mailcore, Pantomime, and EDMessa
Hi all,
First time poster here; rest assured, I have searched the archives
extensively before coming to this. The short of it is I am trying to
generate key events at a level that MAME OS X will see. MAME uses the
pre-Leopard HID APIs to:
1. Find your keyboards
2. Find all keys on your keyboard
I've got a simple utility window that contains a checkbox and a radio
group with two choices. The controller is defined like this:
@interface ToolboxController : NSWindowController {
IBOutlet NSMatrix *JISGroup;
IBOutlet NSButton *stickyModifiers;
NMsgBroadcaster *localBroadcaster;
}
Also, the other thing that was messing things up and making it look
like the problem was in window drawing is that I wasn't saving the
previous NSGraphicsState before setting my PDF one to the current, so
that when I call restore, things are corrupted.
wes
_
>> NSBezierPath *p = [[NSBezierPath bezierPath] retain];
>> [p lineToPoint:NSMakePoint(100, 100)]; // <- crashes here
>
>
> The 'crash' presumably is an exception stating 'no current point for
> operation' or words to that effect.
>
> You can't do a lineToPoint as the first op in
On 04/01/2011, at 11:10 AM, Wesley Smith wrote:
> NSBezierPath *p = [[NSBezierPath bezierPath] retain];
> [p lineToPoint:NSMakePoint(100, 100)]; // <- crashes here
The 'crash' presumably is an exception stating 'no current point for operation'
or words to that effect.
You ca
> Are you sure this crash corresponds to your code? It looks like this is
> crashing when Cocoa tries to draw a window border, but the lowest-level
> frames are PDF-related. Are you perhaps allowing the NSGraphicsContext to
> outlive the CGPDFGraphicsContext it references?
I wish that were the
On 3 Jan 2011, at 4:10 PM, Wesley Smith wrote:
> Then, I do
>
> [NSGraphicsContext setCurrentContext:ctx];
> [[NSColor blackColor] set];
> NSBezierPath *p = [[NSBezierPath bezierPath] retain];
> [p lineToPoint:NSMakePoint(100, 100)]; // <- crashes here
> [p stroke];
>
>
> Top o
I'm trying to figure out why I get a crash when drawing to a PDF CG
context. From what I can tell, some resources are either corrupt or
missing, but it's not easy to tell from the docs since I'm doing
nothing complex and following the sample code on the apple website.
All of this code lives in a
On Jan 3, 2011, at 14:32, Tilo Villwock wrote:
> Hmm doesn't work anyways. In the attributes section of the NSArrayController
> there is a section that's called "Object Controller". That is the one where
> the type of class needs to be specified the array contains, right?
The class only matters
Hmm doesn't work anyways. In the attributes section of the NSArrayController
there is a section that's called "Object Controller". That is the one where the
type of class needs to be specified the array contains, right?
Also why would I uncheck "Visible at launch"? I mean I would have to do this
>
>> I do have the Cocoa framework added and in my pch I am using
>>
>> #ifdef __OBJC__
>> #import
>> #endif
>
> Well, that would have been my first guess. Second guess, does your
> Objective-C source file name end with the .m extension? (Or .mm if you are
> using C++ code from within
>> I do have the Cocoa framework added and in my pch I am using
>>
>> #ifdef __OBJC__
>> #import
>> #endif
>
> Well, that would have been my first guess. Second guess, does your
> Objective-C source file name end with the .m extension? (Or .mm if you are
> using C++ code from within it
On 2 Jan 2011, at 1:23 PM, George Nachman wrote:
> I'm using CGContextShowGlyphsWithAdvances to render fixed-width text
> because it is very fast. If a glyph is missing, I use
> CTFontCreateForString() to pick a better font, and that usually works.
> I ran into a case that I just can't solve with
On Jan 3, 2011, at 2:05 PM, Jason T. Slack-Moehrle wrote:
> I do have the Cocoa framework added and in my pch I am using
>
> #ifdef __OBJC__
> #import
> #endif
Well, that would have been my first guess. Second guess, does your Objective-C
source file name end with the .m extension? (Or
Hello,
Is there special changes to my project that I need to make settings wise to
integrate Cocoa and Carbon?
When I add a Cocoa class to my target I immediately get 9300 compiler errors
and there is nothing in the class. Simple File - New File and then create a
simple class.
I do have the
On Jan 3, 2011, at 11:01, Tilo Villwock wrote:
> In my XIB I've created a NSArrayController which is bound to my App Delegate
> and uses the name of the NSMutableArray variable as Model Key Path. I've also
> set my custom object class in the attributes section of the array controller.
Using an
On Jan 3, 2011, at 08:27, Richard Somers wrote:
> - (void)awakeFromNib
> {
> // Create a bunch of "objects" programmatically which
> // depend on the document managed object context (which
> // is reachable at this stage of initialization).
> }
>
> @end
>
> I would like to establish
On Mon, Jan 3, 2011 at 1:22 PM, eveningnick eveningnick
wrote:
> I dont want everyone to be able to write to that socket, the point is
> to let only System Preferences (for example, by displaying
> "Autorization dialog box" - like "User Accounts" preference pane, for
> example.
> I am wondering if
Thanks for the reply. I actually had the same idea to start with something
simple to recreate the problem. One of those ideas that come to you .5 secs
after you hit the send key. I eventually resolved the issue. I did indeed
need to handle the memory warning in the ViewController that manage
> Unless I'm forgetting something basic, you should be able to connect to your
> daemon's socket from a non-root process if you first change the permissions
> on the socket (using chmod, as if it were a file). The man page for the
> unix-domain protocol family alludes to this briefly:
>
>> All a
On 3 Jan 2011, at 11:03 AM, eveningnick eveningnick wrote:
> i have a daemon whose owner is wheel:root and which provides a Unix
> Domain Socket where i can send/receive datagrams from my custom
> Preference Pane.
> The problem i have is that a socket, installed by a root-process can't
> be "sent"
Hello
i have a daemon whose owner is wheel:root and which provides a Unix
Domain Socket where i can send/receive datagrams from my custom
Preference Pane.
The problem i have is that a socket, installed by a root-process can't
be "sent" by a non-root application, like System Preferences.
I guess i
Hello there,
I'm trying to get into Cocoa Bindings and got a simple setup with a NSTableView
and a NSMutableArray which holds custom Objects that contain a NSDate object
and a NSNumber Object.
In my XIB I've created a NSArrayController which is bound to my App Delegate
and uses the name of the
I sent the following just before Christmas and haven't had any response.
Hopefully now it is a New Year there will be more people around and someone can
help.
Kevin
Hi,
I am having trouble with the edit text bounding box for both a NSTextFieldCell
and a ImageAndTextCell. The cells are used in
On Jan 3, 2011, at 8:42 AM, Brad Stone wrote:
> I don't think the Quick Look documentation is as robust as it can be, I'm
> still trying to figure out how to do the same thing the right way.
Roughly:
@interface MyView : NSView {
QLPreviewPanel * mQLPreviewPanel;
}
- (IBAction)toggle
I'm submitting this code for anyone who needs a quick hack to get Quick Look
working. It's a hack because it's using AppleScript and the Quick Look Server
debug and management tool. If you send an array of paths this will bring them
up in a Quick Look window.
I don't think the Quick Look docu
Hard to say, because you never know, when the docs and the behavior disagree
(which happens a *lot*), which of them is wrong. But since experimentation
demonstrates that just two methods give you 100% complete control over which
cells can be reordered (implementation of
tableView:moveRowAtIndex
I have a custom view in a Nib. The view programmatically creates a
bunch of "objects" during initialization. These "objects" depend upon
the document managed object context. Currently the "objects" are
created in 'awakeFromNib'. It all works fine.
@implementation MyCustomView
- (id)initWit
On Jan 3, 2011, at 8:48 AM, eveningnick eveningnick wrote:
> In any sane operating system it is impossible (at least, directly) for
> an application to remove a file that is running.
Not true. Of course if you do start deleting the files of a running executable,
you can't count on doing much of
Le 3 janv. 2011 à 16:48, eveningnick eveningnick a écrit :
> Hello
> I am writing an application that for users convenience has a button
> "Uninstall".
> Inside, this "uninstaller" stops several launchd services,
> "kextunloads" a driver, deletes this driver and services and finally
> is suppose
Hello
I am writing an application that for users convenience has a button "Uninstall".
Inside, this "uninstaller" stops several launchd services,
"kextunloads" a driver, deletes this driver and services and finally
is supposed to delete itself.
In any sane operating system it is impossible (at leas
Hi,
What is the best way to get a string for a block of highlighted text in PDF
Kit, given a PDFAnnotationMarkup object? I've tried several approaches, but
none of them deals with overlaps in the quadrilateralPoints, gets the text
bounds correct, and adds spaces between lines of text. For examp
I've checked, and the same behavior occurs in the Maps application.
On Dec 25, 2010, at 11:14:52, Rick Mann wrote:
>
> On Dec 25, 2010, at 06:29:49, John Joyce wrote:
>
>>
>> On Dec 25, 2010, at 5:41 AM, Rick Mann wrote:
>>
>>> Hi. I have a simple view-based iPad app that contains a MapKit vi
42 matches
Mail list logo