Re: NSImageView Will Not Alias Images

2010-04-12 Thread Chris Tracewell
On Apr 6, 2010, at 8:16 PM, Ken Ferry wrote: This was once true, but is out of date. I'd like to see a test app. For example, how do you know you aren't getting antialiasing? It may be that you just don't like the output. :-) Well - NSImageInterpolationHigh and NSImageInterpolationNone

Re: Data managment

2010-04-12 Thread Chris Ridd
On 12 Apr 2010, at 17:33, Jens Alfke wrote: > There are also other data storage libraries that have a simpler data model > than sqlite (they’re like on-disk NSDictionaries) so they’re a bit simpler to > use and can potentially run faster. Tokyo Cabinet seems like the main > contender in that ar

Re: Efficiently iterating files on the iPhone

2010-04-14 Thread Chris Parker
tion because it's basically using what's available in the stat() block and nothing else. You should be fine in just using NSFileManager and asking for fileAttributes using an NSDirectoryEnumerator. And as that gets faster, you'll get faster. If you're that worried about it,

Re: NSNumberFormatter not working for me ?

2010-04-15 Thread Chris Kane
456-7890" You're trying to format a number object with NSNumberFormatter and get the formatter to put junk in the middle of the number [digit sequence]. NSNumberFormatter does not support formats putting junk in the middle of the number, except for a limited set involving the thousands sep

Does XCode 3.2 Documentation Browser Stink?

2010-04-15 Thread Chris Tracewell
Am I missing something or does the new Documentation viewer for XCode 3.2 suck? I just upgraded my dev machine to Snow Leopard and installed XCode 3.2 and went to look up some Obj-C classes and everything is wacked. Gone is the filtered search results TableView above my the documentation pages -

Re: Does XCode 3.2 Documentation Browser Stink?

2010-04-16 Thread Chris Tracewell
Noted... I'll file the bug report but will spare the xcode-users subscribers the post as you answered my question. Thank you. --Chris On Apr 15, 2010, at 5:28 PM, Kyle Sluder wrote: > On Thu, Apr 15, 2010 at 4:48 PM, Chris Tracewell wrote: >> Okay, so now that I flew off the

NSTableView delete row with key?

2010-04-21 Thread Chris Idou
What would be the appropriate way to have an NSTableView notice that you hit the delete key and delete the current row? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread Chris Backas
ewer...! m. Except that there can be many Top Ten lists (Mac Apps, iPad Apps, iPhone Apps, Productivity Apps) etc, and then different sites/people put different things on their lists. You could pretty quickly get a list of unique programs much larger than 10 ;) -Chris Backas CONFI

Newbie Q (Distributed Objects)

2010-04-25 Thread Chris Eccles
roxy]; NSLog(@"Connection Setup %...@\n\n\n", remObject); [remObject retain]; } .. which refuses to connect and which does NOT display the remObject as having been found and assigned in NSLog, but simply (null). Am I doing something so obviously crazy that I can't see

Re: -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (NSDictionaryController)

2010-04-26 Thread Chris Parker
4u; NSDictionaryController is tagged as being available in 10.5 (Leopard) and later. So Tiger's unarchiver doesn't know what to do with an archived NSDictionaryController. There's a setting in Interface Builder which should warn you about this kind of thing - if you're set

Re: -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (NSDictionaryController)

2010-04-26 Thread Chris Parker
On 26 Apr 2010, at 5:03 PM, Jack Repenning wrote: > On Apr 26, 2010, at 4:34 PM, Chris Parker wrote: > >> if you're setting the deployment target for the nib correctly then IB should >> warn you that you're encoding something that 10.4 knows nothing about. > &g

Re: menu madness with retain count

2010-04-27 Thread Chris Hanson
r was introduced in 10.5, I would generally assume any Cocoa nibs these days should have a subclass of one of those two classes (or NSApplication, in the case of the main nib file) as its File’s Owner. — Chris ___ Cocoa-dev mailing list (Cocoa-dev

Re: advancementForGlyph problem

2010-04-29 Thread Chris Backas
approx 23.4, which is pretty close to the estimated size you're expecting. Perhaps this negative value implies that the drawing of this glyph is actually to start from *slightly* in the previous character's area? Total guess, feel free to ignore etc etc ;) Chris Backas On Apr 28,

Re: CoreData "in" predicate

2010-05-02 Thread Chris Hanson
On May 2, 2010, at 6:03 AM, Rick Mann wrote: > I saw that, I had hoped that by not specifying an attribute, it would mean > the object itself, not an attribute on the object. Predicates have the “self” keyword for that. — Chris ___ Coc

Re: converting resources, icons, and dialogs to interface builder

2010-05-04 Thread Chris Hanson
stent. (You'll note that there's an NSPanel class but no NSDialog, I don't think it's just a matter of naming differences.) Moving your codebase to Cocoa is a great point to clean up these sorts of things. -- Chris ___ Co

Re: Loading iPhone bundle in Mac OS X application

2010-05-05 Thread Chris Hanson
You're thinking of otool, not otest. OCUnit's otest does load bundles, but it doesn't open (say) ARM bundles on Intel-based Macs. You can't load a bundle for one platform on another. They're different platforms... -- Chris On May 5, 2010, at 1:10 PM, Bill Bumg

Core Data NSExpression Error

2010-05-11 Thread Chris Tracewell
I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I have a single entity app where I subclassed NSManagedObject so I can generate a "Job Ticket ID" for my Job entity whenever a new Job is inserted. However I am getting an error in my Log that is complaining that... -[NSCFNumber count]: unrecogn

Re: Core Data NSExpression Error

2010-05-12 Thread Chris Tracewell
Hi Joanna, I'm still not getting anywhere. Any chance you could send me your test project or post it somewhere? It would be very helpful. Thanks Chris On May 12, 2010, at 2:39 AM, Joanna Carter wrote: > Hi Chris > >> I am on OS X 10.6, XCode 3.2.2, GC and Core Data. I hav

Re: NSDoc's Magic File Watcher Ruins Core Data Migration [SOLVED]

2010-05-24 Thread Chris Parker
gItemURL:(NSURL **)resultingURL error:(NSError **)error AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER; .chris -- Chris Parker iPhone Frameworks Apple Inc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Stealing settings from Mail.app

2010-05-27 Thread Chris Idou
I've got an app that needs to send out emails. I'm trying to import mail settings from Mail.app. For some reason my keychain has passwords for smtp.gmail.com, but not for smtp.me.com. Does anyone know where Mail.app stores other passwords? Or why my keychain has smtp.gmail.com passwords, but n

Re: six things I wasn't able to do with Cocoa

2010-05-29 Thread Chris Hanson
ableView with one column painful? What would you expect to be different about a “simple list” — a table with only one column — compared to a table with multiple columns? — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Stealing settings from Mail.app

2010-05-30 Thread Chris Idou
OK, I see. So is Mobile-Me the only special case, or is there a more general rule about other places to find smtp server passwords? - Original Message From: Greg Guerin To: list-cocoa-dev Sent: Sat, 29 May, 2010 2:37:30 AM Subject: Re: Stealing settings from Mail.app Chris Idou

Re: Stealing settings from Mail.app

2010-05-31 Thread Chris Idou
mac.com"] Right now I'm using http://github.com/tcurdt/edmessage to send mails. Does your framework have any benefits over that one? - Original Message From: Dante Palacios To: Chris Sent: Tue, 1 June, 2010 1:38:04 PM Subject: Re: Stealing settings from Mail.app Hi Chris,

Re: Stealing settings from Mail.app

2010-06-01 Thread Chris Idou
BTW, what exactly are the downsides of sending the mail to local machine sendmail? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi

Notification of window visible?

2010-06-03 Thread Chris Idou
How does one get notification that a window has become visible? I can see notifications for most every type of window event except this most obvious one. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Notification of window visible?

2010-06-06 Thread Chris Idou
Is it? Can't a window become visible without becoming key? - Original Message From: Reinhard Segeler To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 4 June, 2010 4:18:03 PM Subject: Re: Notification of window visible? The notification NSWindowDidBecomeKeyNotification

My Custom Framework Is Not Exporting One of My Header Files

2010-06-08 Thread Chris Tracewell
; MyFramework.framework -> Headers" and can see the header is indeed missing. I know this is the correct directory because I can see MyFramework.framework being deleted when I clean the FW target. Why would it not be exporting the file? Yes, I added it to the target when I created the fil

Re: My Custom Framework Is Not Exporting One of My Header Files

2010-06-09 Thread Chris Tracewell
On Jun 8, 2010, at 6:26 PM, Graham Cox wrote: > > On 09/06/2010, at 11:20 AM, Chris Tracewell wrote: > >> Why would it not be exporting the file? Yes, I added it to the target when I >> created the file. > > > Right-click the file in Xcode and set its role to

Re: merging NSWindow and NSView controllers

2010-06-19 Thread Chris Hanson
What kind of "drawing in their NSView" do these controllers do right now? Perhaps that code should be in an NSView subclass and that subclass should be used in both controllers' nibs. -- Chris On Jun 19, 2010, at 4:58 PM, Shane wrote: > I have an applications with tw

Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-22 Thread Chris Tracewell
t throw any compile errors. I have cleaned and built both the framework and linking project a gizillion times hoping to jiggle something - but no luck. Any suggestions? - Chris XCode 3.2.2 :: GC :: OS X 10.6___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-22 Thread Chris Tracewell
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote: > On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell wrote: >> I have my own custom framework. The framework builds fine but when I link to >> it in one of my projects one class is causing a compile error of... >> >> 

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-24 Thread Chris Tracewell
On Jun 22, 2010, at 2:11 PM, Kyle Sluder wrote: > On Tue, Jun 22, 2010 at 2:03 PM, Chris Tracewell wrote: >> I have my own custom framework. The framework builds fine but when I link to >> it in one of my projects one class is causing a compile error of... >> >> 

accessing core data sqlite from utility

2010-06-24 Thread Chris Idou
I've got a core data database in sqlite format, and I thought I'd download a utility to look inside it. But I've downloaded about 4 utilities that purport to be able to open sqlite databases and none of them can open it, they give errors along the lines of it being encrypted and needing a pass

Re: accessing core data sqlite from utility

2010-06-24 Thread Chris Idou
OK, my stupidity, I was looking at a NSBinaryStoreType and not sqlite. Next question: is there any utility for looking inside a NSBinaryStoreType? - Original Message From: Jens Alfke To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Fri, 25 June, 2010 10:35:10 AM Subject: Re

core data "could not merge changes"

2010-06-25 Thread Chris Idou
I've done a lot of core data development, but all using the XML file format. Now I'm trying to work with sqlite. I've got an app that was working, but when I change to sqllite I get errors. I've got a really basic application, nothing particularly special about it as far as I see, and when I c

Re: Compile Error: undeclared (first use in this function) --> While Init'ing an Object

2010-06-25 Thread Chris Tracewell
On Jun 24, 2010, at 6:59 PM, Graham Cox wrote: > > On 25/06/2010, at 7:52 AM, Chris Tracewell wrote: > >> Obviously, I have a setting wrong somewhere as it is seeing an older version >> of the framework than I am linking to. Any thoughts where I should look? > >

configurePersistentStoreCoordinatorForURL:ofType: modelConfiguration: storeOptions:error

2010-06-30 Thread Chris Idou
According to the doco, the above method is used to "customise creation of the persistent store" especially with regards to the store type. So I've been using the below code, which works perfectly fine for NSBinaryStoreType and NSXMLStoreType, but with NSSQLiteStoreType I get lots of merge erro

Re: Sanity Check

2010-07-07 Thread Chris Hanson
ff adding a +sharedSewAndColorController method that returns a singleton instance (allocating one if it doesn’t exist yet). — Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

draggingEntered Not Working As Expected

2011-08-03 Thread Chris Tracewell
XCode 4, 10.6 GC -- I have an IKImageBrowserView which I have implemented drag and drop for. I have set my view controller as the image browser's drag delegate, registered for pasteboard drag types in awakeFromNib and implemented DnD protocol methods like so... -(void)awakeFromNib {

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
is world writable on 10.7; besides, it has the > sticky (8) bit set, just like /tmp. Does OS X really support the sticky bit? Lion's suggests "no", though this line could be read a couple of ways: #define S_ISTXT S_ISVTX /* sticky bit: not supported */ Chris __

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
On 8 Aug 2011, at 16:02, Kyle Sluder wrote: > On Aug 8, 2011, at 4:54 AM, Chris Ridd wrote: > >> >> Does OS X really support the sticky bit? Lion's suggests "no", >> though this line could be read a couple of ways: > > Yep, it's supported a

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Chris Hanson
ng in the app and the framework. (And -isEqual: implementations are generally smart about immediately returning YES when passed self, but falling back when not.) In short: Do like Apple, use an "NSString * const" global. -- Chris ___ Cocoa-

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-09 Thread Chris Hanson
as a symbol it can look up. That helps cut down on typos when investigating bugs. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: Using #define a good way for String constants, like enums for NSIntegers?

2011-08-10 Thread Chris Hanson
DEPRECATED_ATTRIBUTE. (Not able to check right now...) Alternately, you could use an exports file to control visibility of what's exported. -- Chris On Aug 10, 2011, at 4:06 PM, Daniel DeCovnick wrote: > The disadvantage is if you need to use string constants across binaries (suc

Drag and Drop to Finder, destination location

2011-08-11 Thread Chris Paveglio
ode examples of what I think I need. The problem I have is that I cannot figure out how to get the reference to the place where I am dropping the files in the Finder. What method returns the file path string or NSURL of the drop location? Thanks, Chris ___

Re: Strategies for reusing NSPopover

2011-08-13 Thread Chris Hanson
is some more. This is definitely a good approach - either to present a model-specific view controller, or to have a generic "date picker controller" that implements a delegate pattern or a selected date property (like, say, NSOpenPanel does). -- Chris _

Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?

2011-08-14 Thread Chris Hanson
you can set an object's custom class. It's a mini-plist editor, so you can specify not just a key path and a value, but the type of the value; the value can even be a localized string from your nib's string table. -- Chris ___ Coc

Re: compiling app for 10.6 and 10.7

2011-08-17 Thread Chris Hanson
and on earlier versions the user will get an alert indicating the required OS version. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Matching output color from Preview with PDFKit

2011-08-23 Thread Chris Backas
Hello all, I am trying to setup an internal application that prints PDF documents in an automated fashion to a set of known internal printers. I have played with the various vendor settings in the Print dialog in Preview long enough to get a saved set of print options that produce the color

Re: stdout or stderr file path on iPhone?

2011-08-30 Thread Chris Markle
o e.g., stdout would be /dev/stdout. See if that works for you... Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.

Won't Applescript command use defined ivars?

2011-08-30 Thread Chris Paveglio
r won't be used. Why would that be ignored at all? What am I missing here? Chris For example (code simplified): @interface... { NSString *userName; } @implementation... -(void)applicationDidFinishLaunching:(NSNotification *)aNotification {     userName = NSUserName(); } -(id)performDefaul

Re: Won't Applescript command use defined ivars?

2011-08-31 Thread Chris Paveglio
, let's just do our favorite NSLog NSLog(@"%@", theCommand); //[theConnection close]; //needed? } @end --- Here's the SDEF in case that helps: http://www.w3.org/2003/XInclude";> - Original Message - From: Martin Wierschin

Re: Won't Applescript command use defined ivars?

2011-09-01 Thread Chris Paveglio
erent classes now. Chris - Original Message - From: Martin Wierschin To: Chris Paveglio Cc: Cocoa Dev List Sent: Wednesday, August 31, 2011 7:47 PM Subject: Re: Won't Applescript command use defined ivars? > But I am going to need the application to use the instance of the class

Re: using AppKit additions in background threads

2011-09-06 Thread Chris Hanson
gt; menu-bar though. Just running a tool that links AppKit won't give it an icon and menu bar, especially if you don't put it in a .app wrapper. However, actually running an NSApplication within the tool will. -- Chris ___ Cocoa-dev m

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Chris Hanson
et to the least recent OS you want to run on (in this case 10.6). Furthermore, Xcode 3.2.6 and 4.0 added "Latest Mac OS X" and "Latest iOS" options to the Base SDK pop-up, which is preferable to specifying a particular OS version for the SDK against which you wish to build.

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Chris Hanson
On Sep 6, 2011, at 4:44 PM, Ken Thomases wrote: > On Sep 6, 2011, at 6:31 PM, Chris Hanson wrote: > >> Furthermore, Xcode 3.2.6 and 4.0 added "Latest Mac OS X" and "Latest iOS" >> options to the Base SDK pop-up, which is preferable to specifying a >&g

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Chris Hanson
On Sep 6, 2011, at 4:50 PM, Shane Stanley wrote: > On Sep 7, 2011, at 9:31 AM, Chris Hanson wrote: >> >> You should set your Base SDK to the most recent OS whose features you are >> going to use (in this case 10.7) and set your Deployment Target to the least >> recen

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-06 Thread Chris Hanson
;t a wise one. You're welcome to think anything you want about it. Nonetheless, it doesn't change how developers should be building their software for OS X. It's already how developers are used to building applications for iOS, so it can't be that huge a burden. -- Chris __

Re: The best way to call Cocoa methods not implemented in previous versions of the SDK?

2011-09-07 Thread Chris Hanson
;t need to worry about this, because 10.6.8 supports weak-imported classes. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(

Re: Strange issue with NSPanel @"visible" keypath & observeValueForKeyPath

2011-09-07 Thread Chris Hanson
dow or NSView, supporting KVO. Instead you should use the notifications the component makes available explicitly for notifying observers of interesting happenings. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Quicklook not working for network volume items

2011-10-04 Thread Chris Paveglio
tAtIndex:index]; //testing return values //return [NSURL URLWithString:@"file://localhost/Users/chris.paveglio/Desktop/Using%20Native%20Ai%20Files.pdf"]; return[NSURLURLWithString:@"file://Volumes/Clippers2011/DTDWriteup/Team%203/%20%20Prep/Using%20Native%20Ai%20Files.pdf"]; }

Re: Quicklook not working for network volume items

2011-10-07 Thread Chris Paveglio
        CFRelease(quickLookIcon);             }         }];     }     returniconImage; } - Original Message - From: Norbert M. Doerner To: cocoa-dev@lists.apple.com Cc: chris_paveg...@yahoo.com Sent: Wednesday, October 5, 2011 3:14 AM Subject: Re: Quicklook not working for network volume

Re: Quicklook not working for network volume items

2011-10-07 Thread Chris Paveglio
for URLs on network volumes, I usually Applescript and use Posix paths that start with "/Volumes/..." Chris ----- Original Message - From: Kyle Sluder To: Chris Paveglio Cc: Norbert M. Doerner ; "cocoa-dev@lists.apple.com" Sent: Friday, October 7, 2011 11:33 AM Subject: Re: Qu

Prevent table sorting

2011-10-21 Thread Chris Paveglio
don't see a box to prevent/allow selection reordering. I could hide the table headers and make my own text labels, but I thought there'd be a simple on/off checkbox for this. (XCode 3.2) Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@li

Using version number in code

2011-10-21 Thread Chris Paveglio
suit our needs, users can see immediately if it's the newest version). So far I've simply made a variable or set the version number directly (as a string) in my AppDelegate class, but if I could somehow use the Bundle Version or Bundle Version String Short that would be great. Any sug

2nd table array linked to 1st table selection, updating

2011-10-21 Thread Chris Paveglio
pdated, and then the originally selected row is reselected. This makes the display function and update properly. So my question is, is there a more elegant sort of way to do this kind of multi-table display, using bindings and selections? Thanks, Chris __

Re: Using version number in code

2011-10-21 Thread Chris Paveglio
Cool, Thanks everyone! - Original Message - Subject: Re: Using version number in code Chris, You can get those values like this: NSDictionary *infodict = [[NSBundle mainBundle] infoDictionary]; NSString *bundleVersion = [dict valueForKey:@"CFBundleVersion"]; NSString *sh

Custom About Box with background shape

2011-11-07 Thread Chris Paveglio
nt backgrounds if set to something less than 1.0 [aboutWindowcenter]; [aboutWindowsetStyleMask:NSBorderlessWindowMask]; [aboutWindowmakeKeyAndOrderFront:nil]; } I tried setting some of the settings in awakeFromNib but they didn't seem to apply properly. Thanks, Chris

Re: Custom About Box with background shape

2011-11-08 Thread Chris Paveglio
Yes I did have that set... but when I unchecked it and rebuilt and ran it again, then the window has a black rectangle around it with no transparency. I tried moving most of those code lines to awakeFromNib, but none were successful. >Sounds like your window is initially visible before it's had

Re: Custom About Box with background shape

2011-11-09 Thread Chris Paveglio
>Where did you learn this voodoo? I had tried it while at BNR (2009) and it worked, so I did not look into other methods at that point, nor did I ask about it. Yes I am using NSWindowController, but clearly not 100% correctly. >I suspect you want to do [aboutWindow setOpaque:NO] instead of this

Re: Handling UTIs from a Cocoa protocol

2011-12-17 Thread Chris Hanson
On Dec 17, 2011, at 6:02 PM, C.W. Betts wrote: > Is there a way to put classes into some sort of array to go through and check > if the UTI of a file matches up to any of the UTIs that the class can handle? Classes are objects too, so you can put them in arrays and so on. --

Re: Handling UTIs from a Cocoa protocol

2011-12-18 Thread Chris Hanson
ass answers yes, that's the one you +alloc/-init to actually keep around as the handler for a specific file. -- Chris On Dec 18, 2011, at 3:42 PM, C.W. Betts wrote: > Thanks for the input everyone. > > For those curious, this is the final code: > - (BOOL)application:(NSAppli

Re: Q: An App for both OS X and iOS

2011-12-21 Thread Chris Hanson
as a Core Data data model and localizable strings file(s), it should put them in its BUILT_PRODUCTS_DIR (or a subfolder) and your OS X and iOS projects should copy them out of that and into their own resources. -- Chris ___ Cocoa-dev mailing list (Co

Re: Static variables reset inside CFPlugin code

2012-01-01 Thread Chris Hanson
I have to wonder why you're using CFPlugIn in the first place. I strongly recommend using NSBundle and Objective-C for your plug-in architecture, or plain CFBundle and functions & structs if you absolutely must use C rather than objects for your plug-in architecture.

Re: Copying objects between CoreData stores

2012-01-04 Thread Chris Hanson
ID and the based-on Part ID. If you add a last-modified-date or generation-number to Part, you can use that to detect when you need to propagate changes from the Part in the library to the Part in a document. -- Chris ___ Cocoa-dev mailing lis

Re: Core Data nested managed object contexts and frequent deadlocks

2012-01-13 Thread Chris Hanson
. I'm not sure about your deadlock; does it still occur if you don't use -performBlock: on your main-queue context but just interact with it directly? -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

drawing 1 bit images, and image resolution

2012-02-08 Thread Chris Paveglio
st, image,               (CFDictionaryRef)[saveOptions imageProperties]);      CGImageDestinationFinalize(dest);      CFRelease(dest);     } //(dest)    } //(image)  //CALL ASOC FILE PLACER HERE     } //(result == NSFileHandlingPanelOKButton)  } ]; //savePanel } Thanks, Chris

Re: drawing 1 bit images, and image resolution

2012-02-09 Thread Chris Paveglio
ot;z...@mac.com" To: Chris Paveglio ; Cocoa Dev List Cc: Sent: Wednesday, February 8, 2012 12:53 PM Subject: Re: drawing 1 bit images, and image resolution I know this is somewhat lame, but could you use sips from a shell call to convert your saved image to a tiff and delete the original?

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
st int rawDataSize = widthInPixels * heightInPixels; unsigned char *rawData = (unsigned char*)malloc(rawDataSize); NSUInteger lePixel; for (row = 0; row < heightInPixels; row++) for (column = 0; column To: Chris Paveglio Cc: Cocoa Dev List Sent: Thursday, February 9, 2012 5:43 PM Subject: Re: d

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
I have been able to change the library to output Greyscale images now. It required less work than I had thought. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: drawing 1 bit images, and image resolution

2012-02-10 Thread Chris Paveglio
els; row++) for (column = 0; column To: Chris Paveglio Cc: Cocoa Dev List Sent: Thursday, February 9, 2012 5:43 PM Subject: Re: drawing 1 bit images, and image resolution On 10/02/2012, at 3:54 AM, Chris Paveglio wrote: still looking for a way to convert to 1-bit. So what have you tried? The

Odd display of percent character

2012-02-13 Thread Chris Paveglio
string in the NSAlert display? If I do NSLog on the string displayed in the NSAlert it also logs properly. So why the discrepancy in the Alert? Thanks, Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Odd display of percent character

2012-02-13 Thread Chris Paveglio
eholder. Thanks Kyle, Ken and Keary! - Original Message - From: Kyle Sluder To: Chris Paveglio Cc: Cocoa Dev List Sent: Monday, February 13, 2012 1:22 PM Subject: Re: Odd display of percent character On Mon, Feb 13, 2012 at 9:04 AM, Chris Paveglio wrote: > I'm having an issue

Re: [iOS] NSUserDefaults best practices

2011-02-05 Thread Chris Parker
contains the key/value pairs you wish to use as your "backstop" defaults. Then, you can read that dictionary from the plist in the bundle on launch and call [[NSUserDefaults standardUserDefaults] registerDefaults:]. This sets up the key/value pairs i

NSTableView auto sorting does not work

2011-02-11 Thread Chris Tracewell
I have experienced that an NSTableview which is bound to an array controller will sometimes automatically sort when their column headers are clicked and sometimes not. As an example, I currently have two windows, each with a tableview bound to an array controller. One tableview sorts, the other

Re: NSTableView auto sorting does not work

2011-02-12 Thread Chris Tracewell
this point I could just move on and set my Array Controller's sortDescriptor property but it just really bugs me to not know what line I am crossing that disables the automagic functionality. --Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: NSTableView auto sorting does not work

2011-02-14 Thread Chris Tracewell
> On Fri, Feb 11, 2011 at 5:14 PM, Chris Tracewell wrote: >> I have experienced that an NSTableview which is bound to an array controller >> will sometimes automatically sort when their column headers are clicked and >> sometimes not. As an example, I currently have two

How to wait for methods with result/completion blocks to finish?

2011-03-07 Thread Chris Markle
Thanks in advance... Chris * * * -(void)getJPEGFromAssetForURL:(NSURL *)url { ALAssetsLibrary* assetslibrary = [[ALAssetsLibrary alloc] init]; [assetslibrary assetForURL:url resultBlock: ^(ALAsset *myasset) { ALAssetRepresentation *rep

Re: How to wait for methods with result/completion blocks to finish?

2011-03-08 Thread Chris Markle
e so that I have the JPEG representation available that I can then put into a file to transfer. Any thoughts about how I can adjust my thinking and the app's design to deal with these cases would help me understand this better. Thanks in advance. Chris ___

Re: How to wait for methods with result/completion blocks to finish?

2011-03-09 Thread Chris Markle
Matt, Kyle, Thanks for taking your time to give me your thoughts on this. It's good food-for-thought and "thought" is what I need now... Thanks! Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: Reading RGBA pixel values from image on disk

2011-03-10 Thread Chris Ridd
file like this and retrieve the transparency (alpha) of those pixels. > > I can send you this TIF file, if you agree. It's only 42KB. Have you looked at the file with the commandline libtiff tools eg tiffdump? Chris ___ Cocoa-d

Re: SDK 10.6 with Target 10.5

2011-03-13 Thread Chris Hanson
s advantage of features of the most recent operating system while still being able to write code that runs on the latest operating system; you’re using them correctly. You simply need to be aware of when you’re using newer-OS features and wrap them in runtime check

Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-21 Thread Chris Hanson
solution will be to modify HessianKit -- or any other framework that presents an RPC-style interface[1] -- to follow the Cocoa convention of returning BOOL (or a non-nil/nil object reference) to indicate success or failure, and to fill in an NSError passed by reference if the caller desires addition

Re: OCTET_STRING_t -> NSString?

2011-03-29 Thread Chris Ridd
d for use with LDAP. In particular, no indefinite length encoding, strings can't be constructed, etc. The lber-decode man page mentions this at the top. Given this is all likely to be part of security data, I'd say use the crypto libraries and/or OpenSSL t

Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-03-31 Thread Chris Markle
flexible to the programmer that uses my API, and something that is conventional ion its approach so that the programmer is using something normal and not unusual. Thanks in advance for any counsel on this... Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Seeking advice for how to implement "notification" upon completion of asynchronous upload

2011-04-01 Thread Chris Markle
Did you consider any of the other alternatives and if so what made you go with the delegate approach? Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Programming Context Menu

2011-04-04 Thread Chris Hanson
it ever. It's an anti-pattern called "double-checked locking" and it's fatally broken under most languages' memory models. If you want to initialize a value once-and-only-once, use dispatch_once or (if you need to support a

Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?

2011-04-13 Thread Chris Parker
round in InGameViewController's implementation of -viewDidUnload and see if you're doing anything that involves '[self view]' (or 'self.view' for you dot-syntax people :) ). .chris -- Chris Parker iOS Frameworks (UIKit) Apple Inc.

Re: Communicate Between CocoaAsyncSocket and Java Socket

2011-05-07 Thread Chris Hanson
e the BSD-level socket(2) API if you like. Or you can use NSFileHandle or CFSocket. Or any of a number of other wrappers. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Threading synchronization: does a primitive exists?

2011-05-07 Thread Chris Hanson
// acquire lock immediately [lock lockWhenCondition:0]; // do whatever thread A needs to wait for // unlock in a state that allows thread A to run [lock unlockWithCondition:1]; [lock release]; } Hope this helps! -- Chris On May

<    1   2   3   4   5   6   7   8   9   10   >