Re: Missing connection

2011-01-03 Thread John Brownie
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

Re: Rendering combining marks

2011-01-03 Thread Aki Inoue
-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

Re: Missing ??

2011-01-03 Thread Phil Hystad
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

Re: Missing ??

2011-01-03 Thread Roland King
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

Re: Missing ??

2011-01-03 Thread Phil Hystad
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

Re: Missing ??

2011-01-03 Thread Roland King
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

Re: Rendering combining marks

2011-01-03 Thread George Nachman
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

Missing ??

2011-01-03 Thread Phil Hystad
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

Recommendations IMAP/POP client library

2011-01-03 Thread Julio Barros
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

Generating a low level key event with pre-Leopard HID APIs

2011-01-03 Thread Lou Zell
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

Missing connection

2011-01-03 Thread John Brownie
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; }

Re: NSGraphicsContext PDF crash

2011-01-03 Thread Wesley Smith
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 _

Re: NSGraphicsContext PDF crash

2011-01-03 Thread Wesley Smith
>> 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

Re: NSGraphicsContext PDF crash

2011-01-03 Thread Graham Cox
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

Re: NSGraphicsContext PDF crash

2011-01-03 Thread Wesley Smith
> 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

Re: NSGraphicsContext PDF crash

2011-01-03 Thread Wim Lewis
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

NSGraphicsContext PDF crash

2011-01-03 Thread Wesley Smith
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

Re: Cocoa Binding with NSArrayController and NSMutableArray

2011-01-03 Thread Quincey Morris
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

Re: Cocoa Binding with NSArrayController and NSMutableArray

2011-01-03 Thread Tilo Villwock
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

Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-03 Thread Jason T. Slack-Moehrle
> >> 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

Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-03 Thread Jason T. Slack-Moehrle
>> 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

Re: Rendering combining marks

2011-01-03 Thread Wim Lewis
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

Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-03 Thread Scott Ribe
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

When adding Cocoa classes I get a lot of compile errors automatically

2011-01-03 Thread Jason T. Slack-Moehrle
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

Re: Cocoa Binding with NSArrayController and NSMutableArray

2011-01-03 Thread Quincey Morris
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

Re: Custom View with Interface Builder Bindings

2011-01-03 Thread Quincey Morris
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

Re: Communicating to a process started by root from non-root app

2011-01-03 Thread Stephen J. Butler
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

Re: iPhone UISearchDisplayController how to handle memory warning

2011-01-03 Thread Donald Largen
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

Re: Communicating to a process started by root from non-root app

2011-01-03 Thread eveningnick eveningnick
> 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

Re: Communicating to a process started by root from non-root app

2011-01-03 Thread Wim Lewis
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"

Communicating to a process started by root from non-root app

2011-01-03 Thread eveningnick eveningnick
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

Cocoa Binding with NSArrayController and NSMutableArray

2011-01-03 Thread Tilo Villwock
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

Problems with edit text bounding box cell inside a NSOutlineView

2011-01-03 Thread kevin
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

Re: A Quick Look contribution and a question

2011-01-03 Thread Seth Willits
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

A Quick Look contribution and a question

2011-01-03 Thread Brad Stone
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

Re: UITableViewCell showsReorderControl does nothing

2011-01-03 Thread Matt Neuburg
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

Custom View with Interface Builder Bindings

2011-01-03 Thread Richard Somers
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

Re: Application that uninstalls itself

2011-01-03 Thread Scott Ribe
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

Re: Application that uninstalls itself

2011-01-03 Thread Jean-Daniel Dupas
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

Application that uninstalls itself

2011-01-03 Thread eveningnick eveningnick
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

Highlighted Text in PDF Kit

2011-01-03 Thread Ryan Brown
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

Re: iOS MapKit rotation leaves blank area

2011-01-03 Thread Rick Mann
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