RE: Sandboxing. WTF?

2012-05-29 Thread Shawn Bakhtiar
in, the solution to the technical problems caused by sandboxing is to NOT > use it, find other methods of distribution/advertising :) > > > > Subject: Re: Sandboxing. WTF? > > From: fri...@manoverboard.org > > Date: Mon, 28 May 2012 17:43:26 -0500 > > CC: cocoa-dev@

RE: Sandboxing. WTF?

2012-05-29 Thread Shawn Bakhtiar
ndboxing. WTF? > From: fri...@manoverboard.org > Date: Mon, 28 May 2012 17:43:26 -0500 > CC: cocoa-dev@lists.apple.com > To: shashan...@hotmail.com > > On 28 May 2012, at 4:30 PM, Shawn Bakhtiar wrote: > > > First off (as much as I agree with the sentiment) isn't

RE: Sandboxing. WTF?

2012-05-28 Thread Shawn Bakhtiar
First off (as much as I agree with the sentiment) isn't WTF profanity? Second, and more to the point of my sentiment, and I hope someone on the Apple development team is reading this, have you people gone absolutely mad! This is MCP to the max! Thankfully I write apps for custom in-house appl

RE: const correctness

2012-03-18 Thread Shawn Bakhtiar
"...subtly why C and C++ are poor languages..." 1) Is that why most modern operating systems, especially the ones that run in data centers are written in C? 2) Isn't Objective-"C" a supper set of C, so does that make Objective-C a bad language as well? Isn't Mutability just another word for

RE: NSViewAnimation fade[In/Out]effect not working

2012-03-16 Thread Shawn Bakhtiar
> Subject: Re: NSViewAnimation fade[In/Out]effect not working > From: sli...@araelium.com > Date: Thu, 15 Mar 2012 20:09:25 -0700 > To: cocoa-dev@lists.apple.com > > On Mar 15, 2012, at 7:49 PM, Shawn Bakhtiar wrote: > > > I am trying to fade in and out 4 differ

NSViewAnimation fade[In/Out]effect not working

2012-03-15 Thread Shawn Bakhtiar
I am trying to fade in and out 4 different views based on the user clicking on a tool bar item (each toolbar item representing a different page (NSView) of the document. So far from the examples I've found on line I have come up with this procedure and it does not work. The function fadeInVi

Timeout back to login screen

2011-09-15 Thread Shawn Bakhtiar
Hi All, I have multiple users using the same iTouch device during our inventory, shipping and receiving process. They log in, take inventory, ship stuff, receive stuff, than leave it on the counter. They have requested that the unit time out after 5 min back to the log in screen. I have done s

FW: Safe way to convert C String to NSString

2011-08-18 Thread Shawn Bakhtiar
Sorry here is the Shawn solution he used, I did not post to list the first time :*) From: shashan...@hotmail.com To: wilkerlu...@gmail.com Subject: RE: Safe way to convert C String to NSString Date: Thu, 18 Aug 2011 16:11:45 -0400 have you tried: [[NSString alloc] initWithFormat:

RE: recomendations for creating a beta with date to expire

2011-08-16 Thread Shawn Bakhtiar
Working for a small company, alot of time beta, nay even alpha, products go straight into production. The conversation goes something like this: Developer - "Hi everyone, to address our inventory issues, I created a program that " User - "Lets take a look" User - " Oh my God, this is exa

RE: recomendations for creating a beta with date to expire

2011-08-15 Thread Shawn Bakhtiar
But you are forcing your users hand, which is never a good thing. They may need more time, or lack the resources to continually upgrade. I tent to give users choice, and as much as possible build the app forward compatible (get the Model(VC) right from the beginning, it means A LOT). You can'

RE: recomendations for creating a beta with date to expire

2011-08-15 Thread Shawn Bakhtiar
Sorry for jumping in late... But that does not even make sense. Usually people who are beta users will always stay up to date with products, testing the latest and greatest, and any one who does leave it on, may want to at some point revisit the product, with out having to install it. I have

RE: Fuzzy string matching

2011-06-29 Thread Shawn Bakhtiar
Just out of curiosity... Why not use extended regular expressions? Or am I missing something? > From: edole...@gmail.com > Date: Wed, 29 Jun 2011 09:33:44 -0400 > To: dun...@calamus.net > CC: cocoa-dev@lists.apple.com > Subject: Re: Fuzzy string matching > > Thanks for the reply, I've now fo

RE: L-shaped custom view in Cocoa?

2011-05-05 Thread Shawn Bakhtiar
ev@lists.apple.com > > On Wed, May 4, 2011 at 1:09 PM, Shawn Bakhtiar wrote: > > Actually you only need one view. Subclass it, and over ride the draw method > > > > > > > > [[NSColor clearColor] set] > > NSFillRect(...) <- the size you want to clear

RE: how can I copy from another app?

2011-05-04 Thread Shawn Bakhtiar
I have not been on this list that long to have heard this abajillion times and without knowing what others have said, I can surmise that their replies where no less perplexed with the question "but Why?" The copy and past function is a user interface object, designed to aid in process flow

RE: L-shaped custom view in Cocoa?

2011-05-04 Thread Shawn Bakhtiar
Actually you only need one view. Subclass it, and over ride the draw method [[NSColor clearColor] set] NSFillRect(...) <- the size you want to clear out. If you want the cut out to be more sofisticated, you can use NSBeizerPath and fill it with the clear color. You will not receive any si

RE: BSD TCP Programming on iPad

2011-04-27 Thread Shawn Bakhtiar
I think your statement "I cannot make a decision which technique I should use," says it all. The problem is your looking at this from the prospective of a script writer, not a programmer with at least three possible options (NSStream, BSD socks, etc), of which YOU need to choose which is best.

RE: BSD TCP Programming on iPad

2011-04-27 Thread Shawn Bakhtiar
http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Streams/Streams.html You could even write your own wrapper using C and the BSD libraries > Date: Wed, 27 Apr 2011 10:07:59 -0700 > From: scott_ellswo...@alumni.hmc.edu > To: bing...@asu.edu > CC: Cocoa-dev@lists.apple.com > S

RE: Barcode scanner

2011-04-27 Thread Shawn Bakhtiar
I am two steps away from completing this project, except here we are taking inventory on 2M+ lbs of raw and finished goods, as well as shipping/receiving etc... at the docs. The working prototype is siting next to me, still needs a few tweaks like showing the completed shipping lines as green

RE: Books covering iOS security issues

2011-03-16 Thread Shawn Bakhtiar
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007072 I've looked. This is the best. The examples are all there, and it does a pretty good job of explaining how to do things. > From: s...@

RE: [Moderator] Lion NDA reminder

2011-03-16 Thread Shawn Bakhtiar
In the jungle the quiet jungle... The lion sleeps tonight... In the jungle the quite jungle The lion sleeps tonight Owimboeh... owimboeh... Owimboeh... owimboeh... Owimboeh... owimboeh... Owimboeh... owimboeh... > From: sc...@cocoadoc.com > Date: Wed, 16 Mar 2011 01:13:27 -0400 > To:

RE: origin: lower left vs lower right

2011-02-03 Thread Shawn Bakhtiar
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSAffineTransform_Class/Reference/Reference.html NSAffineTransform? If you read the Drawing and Graphics documents on the developer website, they talks about the view, its bounding box, and how to achieve

RE: Programmatically create view and handle events

2011-01-27 Thread Shawn Bakhtiar
If you come from Microsoft or like me GTK (which are somewhat alike), your going to have a hard time (as I did) adjusting to the use of the NIB (which very much feels like - does not function like - the old MFC RES files) with two fundamental differences. 1) You can use custom classes in the

RE: how to change NSButton color

2011-01-24 Thread Shawn Bakhtiar
Deriving a class from NSButton is not a daunting task by any imagination, you only need understand that NSButton is nothing more than a wrapper class for NSButtonCell. As for the HIG it is a recommendation, and it indeed serves a purpose (IE for programmers who thing all their users are p

RE: Help on Cocoa Class references

2011-01-18 Thread Shawn Bakhtiar
Shoudn't the Java AWT have these functions exposed on the window instance? http://journals.ecs.soton.ac.uk/java/tutorial/post1.0/ui/mouselistener.html (First one I found on google) But if what you are looking for is to track objects inside the OGL window you would probably have to use some k

RE: NSSegmentedControl Label

2011-01-14 Thread Shawn Bakhtiar
Don't listen to the naysayers... You can do whatever you want. NSSegmentedCell is a good start, as it was recommended. More generically you can implement your own NSCell to really get deep; in either case simply override the draw method, and make sure you are checking the state, and drawing a

RE: execute system("some script") on behalf of root from non-root app

2011-01-06 Thread Shawn Bakhtiar
> step back and learn them before attempting to work them. If you get them > wrong, you've just exposed your customers to having their machine attacked. > > On Jan 5, 2011, at 1:49 PM, Shawn Bakhtiar wrote: > > > > > > > Search google is not an answer, altho

RE: execute system("some script") on behalf of root from non-root app

2011-01-05 Thread Shawn Bakhtiar
Search google is not an answer, although a good suggestion. Could you please post the solution you came up with to the list. There are many ways to skin this cat, I think we would all benefit from your experience. Correct. You are NOT running them as root, but you can easily tell the script t

RE: Moderator - Re: iPad 4.2 (deploy to 3.2.2) error

2010-11-10 Thread Shawn Bakhtiar
Only those who have actually signed an NDA with Apple are subject to this, and they are certainly free to refrain from comment. Everyone else is free to talk, blog, and post about it how they please. FYI -- An NDA or Non Disclosure Agreement (the third word being key) requires two parties to

RE: Ping host and port

2010-11-08 Thread Shawn Bakhtiar
http://www.ntop.org It is your friend. It is open source, and IMHO it incorporates a LOT of what you are asking for. I would simply run it in the background with the output redirected to a NSScanner, or something that could pars it out. At a deeper level, you can probably integrated direct

RE: Confused about floats

2010-10-05 Thread Shawn Bakhtiar
gt; To: shashan...@hotmail.com > > On Oct 5, 2010, at 9:16 AM, Shawn Bakhtiar wrote: > > > Did you just call typecasting "*completely* unnecessary and pointless"... > > No, I called typecasting an int type to a floating type, in order to add it > to a floating t

RE: Confused about floats

2010-10-05 Thread Shawn Bakhtiar
r you, but that was not an assumption I was making. > Subject: Re: Confused about floats > From: scott_r...@killerbytes.com > Date: Tue, 5 Oct 2010 08:56:45 -0600 > CC: cocoa-dev@lists.apple.com > To: shashan...@hotmail.com > > On Oct 5, 2010, at 8:51 AM, Shawn Bakhtiar wro

RE: Confused about floats

2010-10-05 Thread Shawn Bakhtiar
Also if x is a float, make sure you use the proper type cast, or values, ie ( x = x + 120.00) or (x = y + (double)z , where x and y are double and z is an int). Remember int, float, double, are C types, and typecasting rules should be in effect. > From: gwes...@mac.com > Date: Tue, 5 Oct

RE: Should I use NSDocument, NSUserDefaults or something else

2010-09-30 Thread Shawn Bakhtiar
Have you looked at the sample code for NSUserDefaults ? I think this IS the place you want to put your info, even though you may not have realized it yet ;) You can serialize any data that can take advantage of NSCoding? ie NSData, and save that as a key value pair. Also, you should first l

RE: I want a window's file owner that's not a NSWindowController

2010-09-28 Thread Shawn Bakhtiar
NSWindowController is for when you want to have multiple windows of the same class (derived from NSWindow), but have different set of callbacks, in different Window controllers that you can attach to each identical NSWindow, in essence giving you a window class, that can have a different set of

RE: NSSplitView

2010-09-23 Thread Shawn Bakhtiar
NSSplitView is derived from NSResponder, so the answer is yes, it should have all the same functionality as an NSControl. > From: k...@highrolls.net > To: cocoa-dev@lists.apple.com > Date: Thu, 23 Sep 2010 13:40:41 -0600 > Subject: NSSplitView > > Is there a way to send a mouse click to an NS

RE: php and cocoa

2010-09-23 Thread Shawn Bakhtiar
Maybe these guys can help Looks like they have done most of the work, and they offer the source https://opensvn.csie.org/traccgi/WiredBot/wiki > From: d...@chancofamily.com > Date: Mon, 20 Sep 2010 12:32:12 -0400 > To: cocoa-dev@lists.apple.com > Subject: php and cocoa > > For those on

RE: Lake Forest Cocoaheads meeting 9/8 - design patterns, Cocoa and other

2010-09-08 Thread Shawn Bakhtiar
Since were posting "This month [they] are incredibly pleased to have @upsidedowndog, aka Niilo Tippler, talking about the development and release of his iOS app, The Home Gene-Splicing Kit." http://www.cocoaheadsla.org/2010/09/next-meeting-september-9-2010/ Which sounds REAL REAL cool. I'