Re: Thoughts on Cocoa

2019-10-02 Thread Sam Ryan via Cocoa-dev
It is good to know there is still solid support for Objective-C UI, thank you for the information John. It has felt like the support is not there the last few years, with much of the documentation "archived" and the new documentation focused on Swift. Presently, it is hard to justify native develop

Re: Thoughts on ARC

2019-10-01 Thread Sam Ryan via Cocoa-dev
ignored it. On Wed, 2 Oct 2019, 02:16 Richard Charles, wrote: > > > On Sep 30, 2019, at 5:57 PM, Sam Ryan wrote: > > > > I tried a completely new approach - Electron. I have found Electron to > be surprisingly quick to prototype, easy to bridge to c++, and is cross > p

Re: Thoughts on ARC

2019-09-30 Thread Sam Ryan via Cocoa-dev
No apology necessary, I'm pained by the same problems as you mentioned! On Tue, 1 Oct 2019 at 14:00, Jens Alfke wrote: > > > On Sep 30, 2019, at 4:57 PM, Sam Ryan wrote: > > I tried a completely new approach - Electron. I have found Electron to be > surprisingly quic

Re: Thoughts on ARC

2019-09-30 Thread Sam Ryan via Cocoa-dev
surprisingly quick to prototype, easy to bridge to c++, and is cross platform (non mobile at least). I would not have recommended a non-native approach until recently, but for what it is worth, I've come to realise this is one of the better options available these days. YMMV. Sam On Tue, 1 Oct

Multiple Documents, Core Data & NSFetchedResultsController

2018-06-06 Thread Sam Smallman
, NSFecthedResultsController is not… Would any of you have any clues I could chase down to figure this out. Many thanks for your help in advance. Sincerely Sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Sandbox issues

2011-11-04 Thread Sam Rowlands
/TP40011183-CH4-SW12 have a great week. Sam Rowlands ___ 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.com

Re: Write to file Entitlement

2011-11-04 Thread Sam Rowlands
IIRC: Take a look at Temporary entitlements, there is one that will enable your application to read/write to the entire user area. The bit I don't understand is why it's marked as a temporary entitlement. Thanks for supporting our software and have a great week. Sam

Re: Adding an image to a project

2010-07-14 Thread Sam
/library/documentation/Cocoa/Conceptual/LoadingResources/ImageSoundResources/ImageSoundResources.html> +Sam On Wed, Jul 14, 2010 at 4:42 PM, Vincenzo Morgante wrote: > Hi, I'm a newbie and I should use an image and show it, so I should put this > image into the resources directory with

Scroll bars in CoreAnimation drawing model

2010-05-03 Thread Sam
CALayer ? How are events for these handled in this model ?. +Sam ___ 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.com Help

Re: Using Set/Array KVC operators

2010-03-20 Thread Sam Krishna
also equivalent in whole, that can't work. Namaste Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished worlds of those who act in virtue. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Using Set/Array KVC operators

2010-03-18 Thread Sam Krishna
ically either @distinctUnionOfArrays or @distinctUnionOfObjects to uniquely merge the two arrays of dictionaries together. I'm trying to uniquely filter based on the email key of the dictionaries, and it would be great to flatten alll this code out. Any ideas? TIA! Namaste Playfully, Sam - If he

Re: widget plugin crashed when i use thread

2010-01-12 Thread Sam Tseng
it) NSArray* args = [NSArray arrayWithObjects:   trackInfo,                         nil]; [webScriptObject callWebScriptMethod:@"_updateInfo" withArguments:args]; i've read ADC documentation, but i still can't figure it out. please teach me. thank you in advance

widget plugin crashed when i use thread

2010-01-12 Thread Sam Tseng
} } [NSThread sleepForTimeInterval:1.0]; } [pool release]; [NSThread release]; } best, sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera

Intercepting events and touches in UIPickerView subclasses? (or, WTF is going in the UIPickerView's responder chain?)

2009-12-18 Thread Sam Krishna
have already solved this) Namaste + Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished worlds of those who act in virtue. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Discovering the default font names and sizes on the iPhone

2009-05-31 Thread Sam Krishna
Hi All, Never mind - I forgot to set the UILabel's font before setting the text value. DOH! Thanks for listening. Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of those who act in virtue. On May 31, 2009, at 7:

Discovering the default font names and sizes on the iPhone

2009-05-31 Thread Sam Krishna
he default section header view font? Does anyone just simply have the knowledge? TIA! Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of those who act in virtue. ___ Cocoa-de

Re: iPhone target-specific headers for Xcode

2009-05-07 Thread Sam Krishna
ne SDKs that I've used. I've worked around this with a hack: use per-target precompiled headers. Set the GCC_PREFIX_HEADER property to use your AppTarget_Lite_Prefix.pch and for a Pro target set it to AppTarget_Pro_Prefix.pch. It works but the downsides are obvious. Thanks again...

Missing EOF (Was Re: Core Data Migration and the Inexperienced Younger Self)

2009-05-07 Thread Sam Krishna
out of deep storage and make it something that can really sing for the modern era of data-driven software applications. Thank you for listening. Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of those who act in virtue. O

Anyone know where the build constants are defined at?

2009-04-15 Thread Sam Krishna
Phone 2.1.0, 2.2.0 and 2.2.1 SDKs in my code so I can execute some different, SDK-dependent behavior. Nothing fancy, just standard #if IPHONE_SDK_221 type stuff. Thanks! Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of

Obj-C equivalent to Python generator functions

2009-04-01 Thread Sam Krishna
Does anyone here know of any Obj-C functional equivalent to Python generator functions? These are *categorically* different that the Spotlight API generator functions. Here's a link in case you're not familiar with them: http://is.gd/qcYt Any ideas? Live Playfully, Sam -

Re: Logical and - second operator evaluated?

2009-03-02 Thread Sam Schapmann
Have you checked that you have initialized the "timer" pointer to nil? Like C, in Objective-C local variables (as opposed to instance variables) are allocated on the stack frame and have unspecified initial values. About the only thing you can count on for sure is that the initial value

Sliding Split Views, part II

2009-01-23 Thread Sam Krishna
Automator Action, and click the "View Description" button on the lower left-hand side of the document window. TIA! Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of those who act in virtue.

Re: Reverse-engineering Apple's two-tinted gradient NSViews

2009-01-22 Thread Sam Krishna
Two points: 1. "Reverse-engineer" may be a little strong. "Mimicking" is what I'm going after. 2. I meant to say "right" (nee correct) angle, not right angle. Please don't respond with a pithy "all 90 degree angles are the right angle"

Reverse-engineering Apple's two-tinted gradient NSViews

2009-01-22 Thread Sam Krishna
at didn't work, either. Any ideas? Live Playfully, Sam - If he listens in faith, finding no fault, a man is free and will attain the cherished words of those who act in virtue. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Mail Activity sliding widget question

2009-01-08 Thread Sam Krishna
utomator's workflow log, workflow variables table, and Automator's Description View. Again, I'm just trying to replicate the animation--if anyone has any ideas, that would be really great. TIA... Live Playfully, Sam - If he listens in faith, finding no fault, a man is

NSDraggingSource's - (void)draggedImage:begatAt: method

2008-10-09 Thread Sam Krishna
Has anyone been able to get NSDraggingSource's - (void)draggedImage:begatAt: method to work? When I implemented it, it didn't fire. Does anyone have any ideas how to trigger that method? TIA! Live Playfully, Sam ___ Cocoa-dev ma

Reflexive Many-to-Many in Core Data?

2008-09-01 Thread Sam Krishna
ortion for Core Data. This was fairly doable (just took some mind-bending at the EOModel level) back in the hoary old days of EOF. TIA! Live Playfully, Sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Sending a GET or POST HTTP request with Cocoa

2008-08-31 Thread Sam Schroeder
GET and capture the returned results. My google_fu is weak. My ultimate goal is to send and receive XML (or maybe JSON) requests over HTTP, but first I want to understand simple GETs and POSTs. Any links or sample code would be greatly appreciated. -- Thanks, Sam __

Re: Incorrect instance of custom view loading after unarchiving

2008-08-23 Thread Sam Krishna
in Leopard, and it's amazing. Thank you all! Live Playfully, Sam On Aug 23, 2008, at 12:12 AM, Quincey Morris wrote: On Aug 22, 2008, at 20:45, Sam Krishna wrote: OK, I've read all the email from the past month about Aaron's challenge in Ch. 18 of Cocoa Programming. I've

Incorrect instance of custom view loading after unarchiving

2008-08-22 Thread Sam Krishna
le IB3 gestalt that I'm missing? Some NSCoding voodoo that's completely obvious? what gives? TIA! Live Playfully, Sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

10.4+ NSNumberFormatter in IB3 question

2008-08-21 Thread Sam Krishna
uping separators inserted (in this case, a comma: ","). Is there some trick that I'm missing here? (FYI: I'm using Aaron Hillegas' CarLot app as an example to make this work). Live Playfully, Sam ___ Cocoa-dev mailing list (Coco

Re: !foo vs foo == nil

2008-08-21 Thread Sam Mo
On Aug 21, 2008, at 7:57 AM, Sam Mo wrote: On Aug 21, 2008, at 4:47 AM, Thomas Engelmeier wrote: Am 21.08.2008 um 05:03 schrieb Michael Ash: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in type, not

Re: !foo vs foo == nil

2008-08-21 Thread Sam Mo
On Aug 21, 2008, at 4:47 AM, Thomas Engelmeier wrote: Am 21.08.2008 um 05:03 schrieb Michael Ash: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in type, not in value. "NULL" is (void *) 0. "nil" is (id)

Re: Localize App Title?

2008-08-05 Thread Sam Mo
On Aug 5, 2008, at 7:25 AM, Chunk 1978 wrote: i've localized the info.plist file, and added these keys to the english subfile: LSHasLocalizedDisplayName according to this web page,

Re: plist parsing in c

2008-07-06 Thread Sam Mo
On Jul 6, 2008, at 3:12 PM, Keith Duncan wrote: The only reliable* way to access system preferences is through the CFPreferences API which NSUserDefaults is built on. CFURLCreateDataAndPropertiesFromResource() and CFPropertyListCreateXMLData() for read. CFPropertyListCreateXMLData() and

Re: IBTool and .XIB files

2008-07-05 Thread Sam Jew
On 05 Jul 08, at 04:23, Sam Jew wrote: >> Hi everyone, >> >> I upgraded to iPhon--- >iPhone development is still under NDA. Wait another week and things >may change. Evidently the existence of this bug means I'm not doing any development for iPhone. I'

IBTool and .XIB files

2008-07-05 Thread Sam Jew
t compile simple example apps with the latest tools and SDKs! Any help would be most appreciated as I am at my wit's end! Thanks kindly in advance, Sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: Style Question

2008-06-28 Thread Sam Mo
On Jun 28, 2008, at 4:54 AM, Robert Claeson wrote: On 28 Jun 2008, at 06:30, Alex Wait wrote: I have noticed, coming from C++ and Visual Studio (at school), a couple style differences if (value) { //do something } insteasd of if (value) { //do something } Also since I am using this

Re: NSString uppercaseString

2008-06-27 Thread Sam Mo
for Cocoa" page, hoping to help Sam. In any case, it was never my intention to spread inaccuracies :-) And I thought it was me who couldn't figure out from the documentation. Could I assume if the doc does not mention releasing the memory, then I don'

NSString uppercaseString

2008-06-27 Thread Sam Mo
Newbie here: I am looking at the documentation in Xcode for the method uppercaseString in NSString class but it does not mention how the return NSString is being released. Will the return NSString be released when the originator be released? Or I have to release the return NSString separately? O

Implementing NSHUDWindowMask on NSDrawer

2008-04-17 Thread Sam Krishna
*Can* I implement a subclass of NSPanel that behaves like an NSDrawer? (2) If so, how would I do that? Thanks! Sam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: HUD panel is deallocating itself after close

2008-04-01 Thread Sam Krishna
Hey Jon, Thanks... I literally figured that out 90 seconds before you emailed me. :-D Sam On Apr 2, 2008, at 1:23 AM, Jonathan Hess wrote: Hey Sam - Uncheck 'release when closed' option in the IB inspector for your HUD window if it is checked. Good Luck - Jon Hess On Apr 1

HUD panel is deallocating itself after close

2008-04-01 Thread Sam Krishna
thing special. All I did was re-wire the main menu's Find->Find... submenu item to my Launcher class in the Edit.nib file. I then used NSBundle to load the secondary xib, set the File's Owner of the 2nd xib to Launcher, and had it point to the HUDController, which in turn performs

Kentucky Meetup

2008-03-19 Thread Sam McDonald
many people are interested. It might just be me, but thats okay. If this is already happening somewhere, then I would definitely like to get involved, and sorry for wasting your time. I googled "Kentucky Cocoa" and all I got were girls on myspace and bourbon balls. Sam Mc

Re: To get machine type (ppc, intel)

2008-03-19 Thread Sam McDonald
We had do this in our most recent app. Here is what we did: #if __BIG_ENDIAN__ #define ARGB_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8_REV #else #define ARGB_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8 #endif Sam McDonald Trimonix On Mar 19, 2008, at 9:14 AM, Nick Rogers wrote: Hi, In my app I'm readin

Re: To get machine type (ppc, intel)

2008-03-19 Thread Sam McDonald
We had do this in our most recent app. There definitely could be better ways, were were pretty new to cocoa. Here is what we did: #if __BIG_ENDIAN__ #define ARGB_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8_REV #else #define ARGB_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8 #endif Sam McDonald Trimonix On Mar

Re: QCView openGLContext

2008-03-13 Thread Sam McDonald
d at about 30 frames a second. Sam McDonald Trimonix On Mar 13, 2008, at 8:00 PM, Lorenzo wrote: Thank you Sam, Your code looks promising. One question, should the renderView be a simple NSView, a QCView or an NSOpenGLView? If not a QCView, should I fire a timer each 1/60 sec in order to r

Re: QCView openGLContext

2008-03-13 Thread Sam McDonald
his will allows you to flush your buffer, but doesn't produce nearly as nice code as what the 10.5 stuff allows you to do. Sam McDonald Trimonix On Mar 13, 2008, at 6:53 PM, Lorenzo wrote: Hi, I build my app against 10.4 SDK. The compiler says that there are no errors. My app runs

Re: Photo Booth Green Screen Effect

2008-02-28 Thread Sam McDonald
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzComposer/qc_intro/chapter_1_section_1.html Sam McDonald Trimonix [EMAIL PROTECTED] On Feb 28, 2008, at 10:32 PM, Bridger Maxwell wrote: Hey, Is it possible to use the Photo Booth "green screen"/chroma key e

Re: Cannot Debug

2008-02-28 Thread Sam McDonald
. It was nice to feel like I wasn't crazy, but it did show that the error was in the code. I am pretty sure that it had something to do with the connection of our NSDocument subclass, I just can't remember what we did to fix it. Sam McDonald Trimonix [EMAIL PROTECTED] On Feb 28,

Re: Cannot Debug

2008-02-28 Thread Sam McDonald
ng plagued with this same issue for 2 months I felt like I had to say something. Also, I have only known cocoa for 7 months (part-time), so if I said anything stupid, I'm sorry. Sam McDonald Trimonix [EMAIL PROTECTED] On Feb 28, 2008, at 7:26 PM, Philip Bridson wrote: I can't