Re: Launching another app with command line arguments

2020-06-20 Thread A. Reichstadt via Cocoa-dev
Write stuff to location in file the other app knows about, then read it. Sent from my iPhone > On Jun 20, 2020, at 16:17, Gabriel Zachmann via Cocoa-dev > wrote: > > Thanks a lot for your reponse. > > Yes , it is sandboxed. > > ... Argh, the *l

Re: iOS database within sandbox

2014-08-22 Thread Michael A. Howard
2 choices out of the box - Core Data and SQLite Core data (once learnt) saves you a lot of time writing cookie cutter code. As for storage - the iOS platform obviously has storage limitations by device so if you’re going to target 8GB devices you’ve already got a limit but within reason an app

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
Thank you a lot, guys! I highly appreciate your help! Cheers, Ruf From: Maxthon Chan [mailto:xcvi...@me.com] Sent: Monday, October 14, 2013 8:46 AM To: Rufat A. Abdullayev Cc: Quincey Morris; Cocoa-dev Subject: Re: collection of applications URL schemes or just bake in. On Oct 14, 2013, at 12

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
Yeah really! What a pity :( So only URL scheme or included libraries From: Maxthon Chan [mailto:xcvi...@me.com] Sent: Monday, October 14, 2013 8:41 AM To: Rufat A. Abdullayev Cc: Quincey Morris; Cocoa-dev Subject: Re: collection of applications That is NOT visible on Springboard and they have

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
That's interesting! How could I call "auxiliary executables" ? Are they visible on springboard? I need to dig more into that From: Maxthon Chan [mailto:xcvi...@me.com] Sent: Monday, October 14, 2013 8:35 AM To: Rufat A. Abdullayev Cc: Quincey Morris; Cocoa-dev Subject: Re

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
From: Maxthon Chan [mailto:xcvi...@me.com] Sent: Monday, October 14, 2013 8:30 AM To: Rufat A. Abdullayev Cc: Jens Alfke; Cocoa-dev Subject: Re: collection of applications You can use a model like this, with a SSO portal app and a bunch of apps that requires it: When the portal itself is casually

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
The problem is all our apps are with GUI So probably I will not be able to use NSTask in that case From: Maxthon Chan [mailto:xcvi...@me.com] Sent: Monday, October 14, 2013 8:23 AM To: Rufat A. Abdullayev Cc: Jens Alfke; Cocoa-dev Subject: Re: collection of applications NSTask. Also you can

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
Hi Quincey Thank you for noticing that. One say: "2.8 Apps that install or launch other executable code will be rejected Your app, again, can't mess with the system and install other apps. Enterprise apps can however do that with a dedicated special Apple certificate. " And

RE: collection of applications

2013-10-13 Thread Rufat A. Abdullayev
Hello Chan and other guys, Thank you a lot for your answers. Yes I'm planning to create a portal (enterprise in the meaning that all our apps could be used/called from one app). Chan, your reply was interesting especially regarding - "Also external binaries can be used - there

RE: collection of applications

2013-10-10 Thread Rufat A. Abdullayev
I also saw another approach they give a link to app store from application and downloaded other app from App Store separately but managed them from another app like a service ... It’s a pity that I could not get more details on implementation! And I would like to learn out how it could be

collection of applications

2013-10-10 Thread Rufat A. Abdullayev
Hello Dear members! I need to collect and manage ios applications on a device for our corporation to single one. For example we have 5 apps and we want to create a new app that will be like a manager(or shell) for all other apps. So I open that app and see there all my existing apps and I

[RAA] realtime audio data transfer between two iOS devices

2013-05-29 Thread Rufat A. Abdullayev
Hello dear members! Could you pls help me. I browsed a lot but could not find real answer I'm implementing Voice over IP application. I'm getting output from mic on one iPhone and I would like to send that data in real time to another device (or may be some other device in group c

RE: QR code reader/generator SDK

2013-02-07 Thread Rufat A. Abdullayev
Oki. Thank you a lot to all! -Original Message- From: cocoa-dev-bounces+rufataa=agbank...@lists.apple.com [mailto:cocoa-dev-bounces+rufataa=agbank...@lists.apple.com] On Behalf Of Uli Kusterer Sent: Thursday, February 07, 2013 4:02 PM To: Alex Zavatone Cc: Cocoa List Subject: Re

QR code reader/generator SDK

2013-02-06 Thread Rufat A. Abdullayev
Hello dear members I have a task for creating QR reader/generator and I would like to ask you an advice is there any free QR codes SDK that do it well and quick for all iOS devices (including iPhone 5) ? If not could you pls advice me the QR code SDK that works well and exist for iOS, Android

RE: Image manipulation/composition library

2012-11-21 Thread Rufat A. Abdullayev
Hello Alex Thank you for answering I forgot to write that I need library for iOS (iPhone/iPad) devices Thank you a lot -Original Message- From: Alex Zavatone [mailto:z...@mac.com] Sent: Wednesday, November 21, 2012 5:31 PM To: Rufat A. Abdullayev Cc: Cocoa-Dev List Subject: Re

Image manipulation/composition library

2012-11-21 Thread Rufat A. Abdullayev
Hello all Do anybody know is there a free image composition library like this one - http://www.ideveloper.az/index.php?/home/show_appl/raapiccomposer with adding text, rotating, scaling, moving etc. Cheer, RAA ___ Cocoa-dev mailing list (Cocoa

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-22 Thread Scott A Andrew
Why not have an update flags function and a set of booleans that represent the flags. @interface someInterface { BOOL _isFoo; BOOL _isBar; } @property (nonatomic, readonly, assign) BOOL isFoo; @property (nonatomic, readonly, assign) BOOL isBar; -(void) updateFlags:(int)bits

Re: Implementing Manual KVO For Bitfields Set in Atomic Operations

2012-08-21 Thread Scott A Andrew
d via KVO. Something like -(NSSet*) keyPathsForValuesAffectingStateZero { return [NSSet setWithObject:@"self.value"]; } So anytime your value changes you will cause a KVO update. -(BOOL) stateZero { // check your state. } -(void) setStateZero { // set your st

10.8 32bit ioctl

2012-08-11 Thread Scott A Andrew
I am needing to write an native extension for air and Flash builder that needs to be 32bit. However when i call ioctl in a 32 bit application it fails with -1. If i flip the app to 64 bit it works. I need a bit of help understanding why 32bit ioctl doesn't work. My questions, maybe so

Macbook Pro retina display and simulator question.

2012-06-11 Thread Scott A Andrew
How does the new 15" retina display handle the iOS simulator. Does the simulator work in pixels or points. Is it going to be just like working a 15" today since text is in points and 12 pt is really 24? Or will it only take 1024x768 + bezel pixels? The one reason i have a 17&qu

Re: @synchronized crashing with ARC

2012-05-31 Thread Scott A Andrew
() directive takes as its only argument any Objective-C object, including self. This object is known as a mutual exclusion semaphore or mutex. It allows a thread to lock a section of code to prevent its use by other threads. You should use separate semaphores to protect different critical sections

Blue highlight on NSMenuItems stops appearing

2011-05-27 Thread Hunter, Craig A. (LARC-D301)
I am seeing a strange problem in a new app, where the standard blue highlight which appears when mousing over NSMenuItems in NSMenus will suddenly stop appearing in the app. So there is no longer visible feedback about which menu item the mouse is over in any of the menus (including the main

RE: NSTableView display issue

2010-09-23 Thread Rufat A. Abdullayev
I had issue with iPhone (cocoa Touch) not desktop Rufat -Original Message- From: Kyle Sluder [mailto:kyle.slu...@gmail.com] Sent: Thursday, September 23, 2010 8:55 PM To: Rufat A. Abdullayev Cc: k...@highrolls.net; cocoa-dev list Subject: Re: NSTableView display issue On Sep 23

RE: NSTableView display issue

2010-09-23 Thread Rufat A. Abdullayev
Hi Koko I had the same problems (just without using NSSplitView) there I had extra controls dynamically created on a standard UITableViewCell (cells updated after scrolling tableview) The problem gone when I created custom UITableViewCell and build it in IB with needed controls (did KVO

RE: php and cocoa

2010-09-21 Thread Rufat A. Abdullayev
Hi Douglas Here is the example of how to send HTTP request with parameters from cocoa http://deusty.blogspot.com/2006/11/sending-http-get-and-post-from-cocoa.html just make a php script on web server side that reads POST/GET variables sent from cocoa application and output desirable content

Compress/decompress NSStrings or NSData

2010-09-08 Thread Rufat A. Abdullayev
Hello All Sorry if that topic already is in the list. I just could not find it I need simple solution for compressing/decompressing NSData or NSString using only standard tools and libs I'm planning to compress JSON data on web server side and decompress it on iphone side I googled for soluti

why textFieldShouldBeginEditing is called twice in iOS4?

2010-09-08 Thread Rufat A. Abdullayev
Hi All Sorry if that topic is already there in the mailing list (actually I could not find it) I noted that textFieldShouldBeginEditing of an UITextField called twice in iOS4. This is probably bug in iOS4 b/c I have this event called one in prev versions of iOS Though I found work-around (jus

Re: -[NSMutableSet randomObject]

2010-05-25 Thread Michael A. Crawford
Hey, not bad. Does the -allObjects method always return the same sequence? Did you just cobble this up or is this running in a system somewhere? It doesn't do everything I want but it is definitely the better part of the 80/20 rule. -Michael On May 25, 2010, at 12:52 PM, Dave DeLong

-[NSMutableSet randomObject]

2010-05-25 Thread Michael A. Crawford
I'd like to extend Apple implementation of NSMutableSet to include a randomObject method. The purpose of this method is self-explanatory and its potential use is I'm sure obvious to most of you. For my first idea I thought about simply adding a category to NSMutableSet but a

Re: Are there any tools or techniques for detecting / debugging retain-cycles?

2010-05-07 Thread Michael A. Crawford
Thanks. Mike's article was extremely helpful. -Michael On May 5, 2010, at 11:32 PM, Andy Lee wrote: > > > > > --Andy > __

Are there any tools or techniques for detecting / debugging retain-cycles?

2010-05-05 Thread Michael A. Crawford
-Michael ___ 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/Unsubscribe/Update your Subscription: http://lists.a

Is there a better way to delete all objects in a MOC & persistent store?

2010-04-30 Thread Michael A. Crawford
Or, am I forced to iterate through the results of a fetch calling deleteObject for each object found? -Michael ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: "iPhone Programming For OS X Coders"?

2010-04-19 Thread Michael A. Crawford
hrough front to back, simply turn to the specific topic you are interested in implementing and you get pretty much what you need in just a page or two. Of course you can save some cash by simply reading Apple's excellent on-line docs for UIKit and Cocoa-Touch. -Michael On Apr 7, 2010, at 1

Loading a Custom View made in IB into tabViewItem(s)

2010-04-14 Thread A
Greetings, I have the following problem: *Set up: -I created a Custom View in Interface Builder that holds a number of other controls within it (text boxes, buttons, etc.) -I created a Controller class for that View that I connected to it via the Controller "cube" from the Library in

How do I compare two NSDates using NSPredicate & Core Data

2010-04-04 Thread Michael A. Crawford
Thus far I've gotten away with using -predicateWithFormat and scalar values. I now need to compare a couple of NSDate instances but am not sure how to code it up with NSPredicate. Consider me a 'visual' learner. -Michael ___ Cocoa-d

Re: Need help with scrolling marquee

2010-03-11 Thread Michael A. Crawford
I played with the truncation property but to make that work you have to continually modify the length of the string. I want to write the string to the buffer once and then have CA scroll it for me at a constant speed I can set. This is where I'm looking for assistance. -Michael On M

Re: Need help with scrolling marquee

2010-03-11 Thread Michael A. Crawford
Graham Cox wrote: > > On 12/03/2010, at 5:23 AM, Michael A. Crawford wrote: > >> - (void)timerFireMethod:(NSTimer*)theTimer >> { >> #if 0 >> // Here I was using a periodic timer to animate the scroll. I noticed that >> // the animation wasn't sm

Need help with scrolling marquee

2010-03-11 Thread Michael A. Crawford
I'm trying to create an effect on the iPhone to scroll text across the view in a given location. Not really sure how to go about it so I did some experimenting. Af first I tried to animate the scroll using a timer. That gave me inconsistent movement; the velocity of the scrolling

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Michael A. Crawford
m under my nose. > > For validating the license key, I would recommend some form of digital > signature rather than just a simple checksum. I used a checksum first time > around and it was quickly hacked. My current scheme also ties the key to the > machine it's installed

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Michael A. Crawford
Thanks for the pointer to the more appropriate group. I'll go check it out. -Michael On Feb 24, 2010, at 5:37 PM, jonat...@mugginsoft.com wrote: > >> >> Not really a Cocoa question... Don't know where else you'd ask it though. >> > The macsb

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Michael A. Crawford
Thanks, Sherm. I'm not a fan either. This is a client request. -Michael On Feb 24, 2010, at 5:00 PM, Sherm Pendley wrote: > On Wed, Feb 24, 2010 at 4:54 PM, Michael A. Crawford > wrote: >> I've purchased apps from other developers on this forum, which have >

Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-24 Thread Michael A. Crawford
I've purchased apps from other developers on this forum, which have mechanisms for limiting functionality until a valid registration code has been provided. I'd like to include this functionality in my own app but don't want to create it from scratch if I don't have t

Need to duplicate the look & feel of the upper-left traffic-lights on a borderless window app

2010-02-24 Thread Michael A. Crawford
I'm creating an app where the client wants to have rounded corners and other oddities on the main window. Therefore I'm thinking I need the main window to be borderless. Unfortunately I also lose the standard look and behavior that the red-yellow-green gumdrop buttons, in the upper-left corner

Re: Copying CLHeading objects does not appear to work . . .

2010-02-11 Thread Michael A. Crawford
It the copy failing because these are read-only properties? -Michael On Feb 11, 2010, at 11:29 AM, Michael A. Crawford wrote: > Here is the code (pertinent snippets) > > @interface BlueSLRGPS () > @property (copy) CLHeading* currentHeading; > @property (copy) CLLocation*

Copying CLHeading objects does not appear to work . . .

2010-02-11 Thread Michael A. Crawford
Here is the code (pertinent snippets) @interface BlueSLRGPS () @property (copy) CLHeading* currentHeading; @property (copy) CLLocation* currentLocation; @property (retain) CLLocation* previousLocation; - (NSString*)compassPointForHeading:(double)heading; - (void)locationManager:(CLLocationManage

Re: How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Thank you for the article. -Michael On Jan 15, 2010, at 12:54 PM, Arun wrote: > You can find a beautiful article on the same @ > http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ > > HTH > -Arun KA > > On Fri, Jan 15, 2010 at 11:20 PM, Michael

How can I populate certain table-columns with image cells while using NSArrayController?

2010-01-15 Thread Michael A. Crawford
Consider an NSTableView instance populated with data from an NSArrayController, which is bound to a content array containing instances of class foo. All of class foo's properties return BOOL and NSString values. The two BOOL values need to be shown in the table using icon images. Shoul

Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-13 Thread rohan a
Should I then use kCFStringEncodingUTF8 in this case ? On Thu, Jan 14, 2010 at 9:52 AM, Kyle Sluder wrote: > On Wed, Jan 13, 2010 at 8:16 PM, rohan a wrote: > > I used kCFStringEncodingASCII, since I am passing a char* strings for the > > filename and alias name through my pr

Re: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-13 Thread rohan a
Hi, Thanks for the response. I used kCFStringEncodingASCII, since I am passing a char* strings for the filename and alias name through my program. Thanks On Thu, Jan 14, 2010 at 4:49 AM, Sean McBride wrote: > On 1/13/10 10:42 PM, rohan a said: > > >int CreateAlias(const char *t

Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-13 Thread rohan a
Hello All, Using the new NSURL methods available with Cocoa on Mac OS X 10.6, I am trying to create an alias file to a certain file. However, this method requires a NSURL data type. But I am writing a C program along with an objective-C program to accomplish this. The C program would accept the

Need some help with custom views . . .

2010-01-10 Thread Michael A. Crawford
ners on the app window, I was thinking of creating a borderless window and then using cornerRadius property of the layer-backed content-view of my main window. This will require me to provide a replacement for the traffic-light buttons that are usually in the upper-left corner along with their

Re: Looking tutorials or blogs on NSOutlineView & NSTreeController . . .

2010-01-06 Thread Michael A. Crawford
Thanks for the pointers (Ken & Rob). -Michael On Jan 6, 2010, at 5:52 PM, Michael A. Crawford wrote: > Never used this view/control before. I'm looking for resources to help me > shorten the curve, especially when used with the NSTreeController. I'm also > considerin

Looking tutorials or blogs on NSOutlineView & NSTreeController . . .

2010-01-06 Thread Michael A. Crawford
Never used this view/control before. I'm looking for resources to help me shorten the curve, especially when used with the NSTreeController. I'm also considering switching my model to CoreData. Currently I have some code working that uses neither CoreData nor NSTreeController and I wondering

Re: NSAlert or what?

2009-12-19 Thread David A. Lyons
Here's a recipe I discovered recently: Consult the Apple Human Interface Guidelines PDF [1], which sometimes has an "Implementation" section that tells you what classes, APIs, or constants to use. In this case, browsing for this section: Part III: Aqua

NIB/XIB created objects, should they be released in -[dealloc]?

2009-11-23 Thread Michael A. Crawford
I wouldn't have though so. I would assume that since I did not allocate them directly, I don't need to clean them up. I've just inspected some code that declares properties that are marked as outlets and whose member variables are allocated in the NIB file. When the class' dealloc method is c

Re: Hardware UUID

2009-11-08 Thread Grigutis, John A
009, at 3:53 PM, Brent Smith wrote: > Thanks Jerry, > This is exactly what I needed. > > On Nov 8, 2009, at 12:14 PM, Jerry Krinock wrote: > >> >> On 2009 Nov 08, at 11:05, Brent Smith wrote: >> >>> Is there a simple way to obtain and hardware

Re: Hardware UUID in New Mac Book Pro

2009-10-11 Thread Grigutis, John A
On Oct 8, 2009, at 10:18 AM, Rajendran P wrote: > Hi, > How to fetch the Hardware UUID from New Mac Book Pro. Earlier Mac > Book's system Profiler was showing Hardware UUID but in new > machines, It might be hidden or stored in any other form/name. > Is there any command or (c/cpp) api to get

Re: Binding to currently selected object in a list?

2009-10-10 Thread A B
Ken, Thank you for the well-expressed response. I understand both options as you've explained them and will try them both to see which ones I end up having a better feel for. I may have to go for the second example as I think that it will get executed in a more deterministic order ea

Re: Binding to values which aren't there

2009-10-09 Thread A B
On Friday, October 09, 2009, at 04:21PM, "mmalc Crawford" wrote: > >On Oct 9, 2009, at 3:17 PM, A B wrote: > >> I have a situation in which I would like a column in a table that is bound >> to an NSArrayController to display information that isn't actually

Binding to values which aren't there

2009-10-09 Thread A B
I have a situation in which I would like a column in a table that is bound to an NSArrayController to display information that isn't actually in the objects being represented, but is instead the result of an operation that involves a bit of data in that row's object and a separate b

Binding to currently selected object in a list?

2009-10-09 Thread A B
Is there a way to bind an ivar to the currently selected object of a list which is being represented in an NSTableView via bindings? Unfortunately there does not seem to be a "selectedObject" key (though there is one for "selectedObjects"). Binding to the controller&#

Looking for Sample code: WWDC2007 - Session 201 - Building Animated Cocoa User Interfaces

2009-09-27 Thread Michael A. Crawford
I believe the demos were called CocoaShuffle and Layer-Backed OpenGL View. Can these be downloaded somewhere? -Michael ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: Not receiving mouseDown/Up events in borderless window . . . (Solved!)

2009-09-17 Thread Michael A. Crawford
Apparently on Leopard (and presumably, early versions of Mac OS X) you have to handle the mouseDown event in order to receive a mouseUp event. Initially, I only overrode mouseUp, thinking that I didn't want to react to the event until the user releases the mouse button inside the N

Binding a model's ivar array to the contents of an NSArrayController

2009-09-16 Thread A B
I have an NSView that is keeping track of a group of objects via an NSMutableArray ivar (let's call it relatedObjects). Objects in this array are represented in the view by subviews (i.e. when I add an object to the array, a new subview appears, when I delete them, the associated subvi

Re: Not receiving mouseDown/Up events in borderless window . . .

2009-09-14 Thread Michael A. Crawford
g else I've programmed it to do when the mouse is clicked in one of my views. My tester is reporting the same problem when he runs the code on his 10.5 system. I'm building this code on 10.6 with Xcode 3.2. This is my development machine, which I foolishly upgraded. I no lo

Re: FreeTDS Cocoa Sample?

2009-09-14 Thread Grigutis, John A
On Aug 10, 2009, at 4:34 PM, Robert Mullen wrote: > I have scoured the archives and the web in general looking for a > sample XCode project that uses FreeTDS. Does anyone know where one can > be found or would anyone be kind enough to share some source code with > me? What I have do

Re: Not receiving mouseDown/Up events in borderless window . . .

2009-09-12 Thread Michael A. Crawford
Since the window is transparent and the view is not, maybe the view is actually getting the mouse event? Maybe. But why does it work on Snow Leopard? I will test your theory out and get back to you. I'm not even sure the content-view is a responder but I'll check that

Not receiving mouseDown/Up events in borderless window . . .

2009-09-12 Thread Michael A. Crawford
I have created a borderless window that is used to display a custom graphic, which need to respond to the enter key or a mouse click by closing itself. Seems straightforward enough. It works great on Snow Leopard (10.6) but I do not get the mouse events on Leopard (10.5). Hitting the

Re: Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-04 Thread Michael A. Crawford
nished, I close the startup window and release the controller. Here is where things go south. -[[NSApplication sharedApplication] mainWindow] returns nil! So, when I call -[window makeKeyAndOrderFront] I'm doing so with a nil object. I don't know how to make my main window vi

Need a launch/loading screen to be displayed while app is starting/initializing?

2009-09-02 Thread Michael A. Crawford
I'm looking for techniques on how to display a startup or loading panel for my app. There is some initial processing that needs to be done and it can sometimes be moderately lengthy in terms of making the user wait. What I'd like to do is display a startup graphic with lic

Remote host issue with Xcode 3.x

2009-08-30 Thread Gernot A. Pohl
ories) and operations within work fine but any SCM file control does not (because of 'Host offline'). I connect via SSH using a host, which cannot be resolved by DNS (the used host maps to another host with a custom port by SSH config). Btw, XCode is the only one tool I know of, which canno

_subtreeDescription: What do the ampersands mean?

2009-08-26 Thread Michael A. Crawford
In the line of GDB output below, what do the ampersands following the h= and v= mean? (gdb) po [self _subtreeDescription] [ D A W#] h=--& v=&-- NDView 0x10012fca0 f=(0,113,480,473) b=(-) => TIME drawRect: min/mean/max 0.00/0.00/0.00 ms A=autoresizesSubviews, C=canDrawConc

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Michael A. Crawford
Got it. Thanks. -Michael On Aug 24, 2009, at 1:29 PM, Quincey Morris wrote: On Aug 24, 2009, at 10:19, Michael A. Crawford wrote: Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called

Why would +[initialize] be called twice?

2009-08-24 Thread Michael A. Crawford
Why would the class initializer be called more than once when my app starts up? Is this expected behavior? In case you're wondering, it is called twice. + (void)initialize { // Create the defaults dictionary, fill it with the standard values, // and register it. NSMutableDicti

Re: Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Michael A. Crawford
t 10:25 PM, Michael A. Crawford wrote: I have written an application that uses the NSOperation and NSOperationQueue classes. My customer now wants me to make it run on Tiger. Before I try to write my own limited version of NSOperation and NSOperationQueue that creates threads based on the

Need NSOperation replacement for Tiger (10.4)

2009-08-24 Thread Michael A. Crawford
(I know there is more to a good implementation than that), I though someone out there might have already done so. So, I'm looking for a drop in implementation I can insert into my existing CDAppTask class. -Michael -- The difference between genius and stupidity...

Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-24 Thread Michael A. Crawford
Thanks to Kyle for the 'where' and to Graham for the 'how'. -Michael On Aug 18, 2009, at 11:08 PM, Kyle Sluder wrote: Coming at it from the point of NSTableView is attacking from the wrong direction. You should be exporting your model data as CSV; a controller (in

I need to convert NSTableView data into something suitable for consumption by a spreadsheet

2009-08-18 Thread Michael A. Crawford
I have an application that uses an NSTableView, bindings, and an NSArrayController to manage some data pertinent to my application. While running the application, I realize that I need to do some statistical analysis on the data in the table-view and it would be a nice feature to dump

How to manage NSArray, NSDictionary, ... description encoding for non ascii characters?

2009-08-17 Thread Gernot A . Pohl
"Hello, W\U00f6rld!" ) dictionary={ halo = "Hello, W\U00f6rld!"; } Problem: HOW can I get the SAME NSString description output within the array/the dictionary description output??? I need a real unicode character instead of '\U

Re: Mixing Objective-C and C++ classes; How?

2009-08-06 Thread Michael A. Crawford
Problem solved. As it turns out the problem was that the class is declared in a C++ namespace. I did not properly scope the class nor was I using a 'using namespace' statement. -Michael -- The united stand. The divided get played. -- Bernie MAC On Aug 6,

Mixing Objective-C and C++ classes; How?

2009-08-06 Thread Michael A. Crawford
Should the following work (assuming it is included in an Objective-C file with a .mm extension)? @interface CDBPMDetectOperation : NSOperation { class BPMDetect* bpmDetector; // C++ class as an objective-c class member } -Michael smime.p7s Description: S/MIME cryptographic

Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread A B
OK, I'm feeling really REALLY stupid for asking this question, but I've managed to stump myself so hard that I doubt I have the proper detachment to figure out the answer for myself any more. My apologies in advance... I have been playing around with bindings for a while now and

Re: What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?

2009-07-21 Thread Michael A. Crawford
We have a winner! Yeah, both NSWindow outlets were not hooked up in IB. Shouldn't I get some sort of warning. Oh well. Thanks for pointing that out. The views don't look right but they show up. I will sort it from here. -Michael On Jul 21, 2009, at 12:42 AM, Kyle Sluder

Re: How do I track down an OSStatus error code?

2009-07-21 Thread Michael A. Crawford
Yeah I especially liked that one too. You know there are quite a few handy (for development) command-line utilities laying on the disk. I found out last week that there is a program for creating and converting .CAF files. I had no idea. It would be nice if someone put up a web page or

What are the finer points to programatically loading a view from a NIB and attaching to the default window in MainMenu.xib?

2009-07-20 Thread Michael A. Crawford
[window setContentView:ndViewController.view]; #endif } The NIB file is loaded in that I was able set a breakpoint on - [awakeFromNib] for the NDView class. Yet, I don't see any output. If I remove the controller and use IB to add the NDView to the window as a custom-view. I can see the view and works fi

How do I track down an OSStatus error code?

2009-07-20 Thread Michael A. Crawford
Looking for the meaning behind the value -43. -Michael smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: iTunes COM interface for Windows; need the equivalent for iTunes on the Mac

2009-07-16 Thread Michael A. Crawford
ApleScript/Scripting-Bridge it is. Thanks, guys. -Michael -- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious

iTunes COM interface for Windows; need the equivalent for iTunes on the Mac

2009-07-16 Thread Michael A. Crawford
So, is there an SDK for accessing iTunes on the Mac? -Michael -Michael -- The united stand. The divided get played. -- Bernie MAC smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@

When filing bugs with RADAR are attachments confidential?

2009-07-16 Thread Michael A. Crawford
If I attach sample code from my app, is it out there for all to see? -Michael -- We know as much about software quality problems as they knew about the Black Plague in the 1600s. We've seen the victims' agonies and helped burn the corpses. We don't know what causes it; w

Convention for class name prefixing . . .

2009-07-16 Thread Michael A. Crawford
So, what is the convention? I assume I should prefix my class names so that I minimize potential for name space conflict, but what should I use as a prefix? The options readily available to me are: 1) Developer or company name 2) Application or framework name Given that I have a Protocol

Re: [Newbie] Displaying an NSImage inside an NSTextField?

2009-06-30 Thread Malte Philipp A.
I.S., Wagner, Graham, thanks a lot for your quick answers! I'll tinker around with the NSTextView as a learning experience but I think your suggestion to use a separate NSImageView is really the most elegant way to go here! Again, thanks for your quick and helpful answers! -Ph

Re: Which Foundation classes should I use for parsing text from a file?

2009-06-19 Thread Michael A. Crawford
Thanks for the recommendations. Currently, I'm using NSScanner. But I will have a look at TDParseKit. -Michael -- There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to

Which Foundation classes should I use for parsing text from a file?

2009-06-19 Thread Michael A. Crawford
My NS class vocabulary is a little shallow when it comes to text processing. I'm sure that there are classes in Foundation that can be used to put together a text processing application in short order, I just don't know what they are. I'm looking through the docs now, but

Should touch events related to a given view be implemented in the view or the view controller?

2009-06-04 Thread Michael A. Crawford
Previously, I would have said the view-controller. But I just finished looking at the Metronome sample, which is included in the iPhone SDK. The touch handling code as well as some of the view initialization code (requiring a completely loaded view) is implemented in the UIView-derived

Drawing 1 pixel line with zoom change

2009-05-11 Thread Sahana A
Hi There, We have a feature in our application wherein we have to draw a 1 pixel line. This drawing also varies relative to the zoom factor of our view. For example if we are drawing at a zoom factor of 200% we draw 0.5 pixel line. ( basically: 1/zoomfactor width of line; 1 if the

Re: Need to find out why I get Cocoa error 256 . . . (more info)

2009-04-13 Thread Michael A. Crawford
NSError* error; if ( ![[fetchedResultsController managedObjectContext] save:&error] ) { NSLog(@"Failed to save context with new data: %@", error); } [self.tableView reloadData]; } } -Michael -- There are two ways of con

Need to find out why I get Cocoa error 256 . . .

2009-04-13 Thread Michael A. Crawford
Where can I find detail on the following error code? Or, can someone point me to information on how to effectively debug a failure for a CoreData -[NSManagedObjectContext save] invocation? 2009-04-13 10:17:28.625 SpecialOrders[4923:20b] Failed to save context with new data: Error Domain

Number of NSMetadataQuery objects limited?

2009-03-27 Thread Ilja A. Iwas
Hi, I am running into a problem with having more than 32 NSMetadataQuery objects around (started and still allocated). When I start my queries for a certain scope (in this case a directory containing 1.500 files, which has been indexed by a custom spotlight importer before), I cannot get

Re: CALayer autoresizing behaviour

2009-01-28 Thread Michael A. Crawford
That sounds like a good plan. I did something similar in order to try to work out a problem I had with nested CATextLayer objects not displaying. The test app worked great. When I reproduced the necessary bits of code in my application, I still cannot see the text layers. It is very

Re: CALayer autoresizing behaviour

2009-01-26 Thread Michael A. Crawford
wrote: All, I'm having trouble getting a CALayer to resize automatically to fill its superlayer. I have the following code snippet: layer = [CALayer layer]; layer.layoutManager = [CAConstraintLayoutManager layoutManager]; layer.autoresizingMask = kCALayerWidthSizable | kCALayerHe

  1   2   3   4   >