Re: Calling a script with Xcode 4

2011-10-05 Thread Jens Alfke
On Oct 5, 2011, at 6:18 PM, cptkrf wrote: > In Xcode 3, I would put the scripts and data in (jobfolder)/build/debug and > call it, as with --- int result = system("./perlscript.pl"); Worked fine. That may have worked, but it’s kind of bass-ackwards, if you’ll excuse my French. The build/ fol

[Moderator] Mourning the passing of Steve Jobs

2011-10-05 Thread Scott Anguish
This is the hardest email I’ve ever had to write to this list. With the passing of Steve Jobs, there may be the wish to express your feelings here. While it may seem callous, I ask that you please refrain from doing that. It isn’t that I don’t ache at this loss, the man had a huge impact on my l

Calling a script with Xcode 4

2011-10-05 Thread cptkrf
Greetings everyone. I started learning Xcode a while ago and managed to bootstrap myself to a position to actually be able to write some code that works. Xcode isn't exactly a beginner friendly suite, to say the least, but with some patience it can be learned. Then I got a new Macbook and it

Re: Keyboard NSEvents and a NSObjectController?

2011-10-05 Thread Quincey Morris
On Oct 5, 2011, at 17:28 , Robert Monaghan wrote: > I have a bunch of Objects that are in an NSArrayController. My UI is bound to > an NSObjectController which is then set to work with one of these objects (in > the ArrayController). The user essentially selects one of the objects in the > Arra

Keyboard NSEvents and a NSObjectController?

2011-10-05 Thread Robert Monaghan
Hi Everyone, It seems to me that there isn't an easy way to do this.. I have a bunch of Objects that are in an NSArrayController. My UI is bound to an NSObjectController which is then set to work with one of these objects (in the ArrayController). The user essentially selects one of the objects

Re: Years-old mysterious bindings crash

2011-10-05 Thread Seth Willits
Ok, this is long but I think I've maybe found an answer to something. I'm guessing I'm somehow rarely triggering a bug in Cocoa. I've had a couple of these exceptions, and this may be more helpful. So [AQConnTabController initWithNibName:bundle:windowController:] creates a NSObjectController

Re: Windows _findfirst , _findnext

2011-10-05 Thread Charles Srstka
Another thing that might be helpful is FSCatalogSearch, which can do a *very* quick search of a volume. It doesn’t work for searching individual folders, though — it’s all or nothing. Charles___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: Windows _findfirst , _findnext

2011-10-05 Thread koko
Thanks for all the input. I am doing x-platform development and we like to keep mainline code identical so I implemented functions _findfirst and _findnext using NSFileManager ... it work s pretty cool as follows: intptr_t _findfirst(CString search, _finddata_t *data) { intptr_t rtx =

Core Image Capture: ICScanner and brightness/contrast adjustments.

2011-10-05 Thread Robert Tillyard
Hello, I'm struggling to find documentation on using ICScanner apart from the Scanner Browser example which was really great and helped a lot but the images that are scanned are too light. In some scanner apps the user can set the brightness/contrast then scan to get a better image. Do I need

Re: UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/5/11 1:01 PM, Ron Wagner wrote: > I can see the actual select item on the web page changing when it > should. The problem is that the Picker items aren't changing along > with the select item. I've tried a hack to un-focus the second > select a

Re: Windows _findfirst , _findnext

2011-10-05 Thread Lee Ann Rucker
[[[NSFileManager defaultManager] contentsOfDirectoryAtPath:aPath error:NULL] pathsMatchingExtensions:anArrayOfExtensions] On Oct 5, 2011, at 2:07 PM, Kyle Sluder wrote: > On Wed, Oct 5, 2011 at 1:31 PM, koko wrote: >> Is there a best way to get thins done with NSFileManager? > > NSFileManage

Re: Windows _findfirst , _findnext

2011-10-05 Thread Franklin Marmon
The numbers have been added on this side. frm Franklin Marmon agathe...@agasupport.com GTalk: agathe...@gmail.com On Oct 5, 2011, at 3:07 PM, Kyle Sluder wrote: > On Wed, Oct 5, 2011 at 1:31 PM, koko wrote: >> Is there a best way to get thins done with NSFileManager? > > NSFileManager has n

Re: Windows _findfirst , _findnext

2011-10-05 Thread Kyle Sluder
On Wed, Oct 5, 2011 at 1:31 PM, koko wrote: > Is there a best way to get thins done with NSFileManager? NSFileManager has no concept of file extension patterns like Windows does. If you really need to find all files that have the extension ".exe", then you can do a simple loop and comparison. If

Re: Windows _findfirst , _findnext

2011-10-05 Thread Seth Willits
On Oct 5, 2011, at 1:31 PM, koko wrote: > Is there a best way to get thins done with NSFileManager? Just the straightforward loop and pathExtension comparison. -- Seth Willits ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Windows _findfirst , _findnext

2011-10-05 Thread koko
In Windows the function intptr_t _findfirst(CString search, _finddata_t *filedata) returns in _finddata_t the file information for the first file matching search so if I pass /Path/*.ext I get the first file whose extension is extension _findnext(CString search, _finddata_t *filedata) will cont

Re: Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/5/11 12:39 PM, Nick wrote: > I am a beginner in this kind of programs (usually I ended up with > placing few buttons/standard Cocoa controls and implemented rather > low level logic of the application). I need an advice how would > experienced de

Re: Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Richard Somers
On Oct 5, 2011, at 1:39 PM, Nick wrote: > I have a task to write a simple vector graphics editor, which has a window, a > sheet (which can be bigger than the window), and some objects (triangles, > rectangles) to be placed on this sheet (and then, edited, e.g. rotated, > stretched) by their bor

Re: Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Jens Alfke
On Oct 5, 2011, at 12:39 PM, Nick wrote: > I have a task to write a simple vector graphics editor, which has a window, > a sheet (which can be bigger than the window), and some objects (triangles, > rectangles) to be placed on this sheet (and then, edited, e.g. rotated, > stretched) by their bord

Re: Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Wim Lewis
On 5 Oct 2011, at 12:39 PM, Nick wrote: > I have a task to write a simple vector graphics editor, which has a window, a > sheet (which can be bigger than the window), and some objects [...] I need an > advice how would experienced developers implement this basic functionality. > [] > What I

Re: UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Ron Wagner
On Oct 5, 2011, at 3:28 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/5/11 12:04 PM, Ron Wagner wrote: >> I have an app with a UIWebView. The contents of the UIWebView >> contains two html items. When the first select item is >> changed, javascript on th

Writing a simple vector graphics editor - how to implement?

2011-10-05 Thread Nick
Hello! I have a task to write a simple vector graphics editor, which has a window, a sheet (which can be bigger than the window), and some objects (triangles, rectangles) to be placed on this sheet (and then, edited, e.g. rotated, stretched) by their borders. I am a beginner in this kind of progra

Re: UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/5/11 12:04 PM, Ron Wagner wrote: > I have an app with a UIWebView. The contents of the UIWebView > contains two html items. When the first select item is > changed, javascript on that item populates the second > time according to the sele

UIWebView not updating picker when picking dynamically populated select items

2011-10-05 Thread Ron Wagner
I have an app with a UIWebView. The contents of the UIWebView contains two html items. When the first select item is changed, javascript on that item populates the second time according to the selection of the first item. The problem I am experiencing is that when tapping on the first

Codesign non-AppStore build with AppStore signing identity

2011-10-05 Thread Trygve Inda
One of our apps (distributed via our website) is not signed. It seems that Parental Controls signs our app behind our back to do what it does. This obviously alters our app and breaks some integrity checks. A Tech Note says that simply signing it will fix this. Can we just sign it the same way w

Re: need to run a ln command for every boot

2011-10-05 Thread Fritz Anderson
On 5 Oct 2011, at 3:53 AM, kiran kumar wrote: > i am using this below script for creating a shortcut icon for my test > application on my desktop, when i install my package. > > #!/bin/sh > `chmod -R 777 /Applications/test.app` > `ln -s /Applications/test.app ~/Desktop/` > > First time when i i

[MEET] Toronto Cocoaheads / tacow - October 11

2011-10-05 Thread Karl Moskowski
tacow's next quarterly meeting is scheduled for 6:30 PM on Tuesday, October 11, 2011 in room 303 of Metro Hall. We'll be having a SecondConf recap, and a presentation iOS testing. Details, directions, etc. at . All are welcome, and we look forward to seeing you there.

Re: PDF viewing

2011-10-05 Thread Michael Dautermann
On Oct 4, 2011, at 4:26 AM, Dan Hopwood wrote: > Hi all, > > Is there any way to open a PDF without using a UIWebView i.e. like the Mail > app? Another way to do it would be via lower level calls in Quartz 2D (which is available in iOS). You could load the document via CGPDFDocumentCreateWit

Re: need to run a ln command for every boot

2011-10-05 Thread kiran kumar
thanks for u r reply Conrad Shultz i am using this below script for creating a shortcut icon for my test application on my desktop, when i install my package. #!/bin/sh `chmod -R 777 /Applications/test.app` `ln -s /Applications/test.app ~/Desktop/` First time when i install my package it create

Re: need to run a ln command for every boot

2011-10-05 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/5/11 12:16 AM, kiran kumar wrote: > Hi All, > > I need to run this ln -s /Applications/test.app ~/Desktop/ command for > every boot on Mac OS 10.6. > Please can any one suggest me how to do this . 1) This has nothing to do with Cocoa. 2) S

Re: Use Subclass in Interface Builder

2011-10-05 Thread Andy Lee
Yeah, I don't know if there's a logical reason why the "Custom View" object in IB is treated specially or if it's a historical artifact. --Andy On Oct 5, 2011, at 2:51 AM, Dong Feng wrote: > Thank you, Andy. > > But slightly wired that NSOpenGLView isn't considered as a custom view, > conside

Re: Quicklook not working for network volume items

2011-10-05 Thread Norbert M. Doerner
Chris, I am trying to get Quicklook working in an app of mine. I'm not sure all these details are relevant, but better to have more than less info. I have a table that shows the number of files in certain folders on a network volume. In one column is the number of files, another column show

need to run a ln command for every boot

2011-10-05 Thread kiran kumar
Hi All, I need to run this ln -s /Applications/test.app ~/Desktop/ command for every boot on Mac OS 10.6. Please can any one suggest me how to do this . Regards, Kiran The information contained in this email and any attachments is confidential and may be s