Re: Coming up with ideas

2009-06-13 Thread Graham Cox
On 13/06/2009, at 4:54 PM, Rick Langschultz wrote: Then code. Then design. Or preferably, vice versa... ;) --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: searching a string in big file

2009-06-13 Thread Angelo Chen
Hi Stephen, Thanks for the quick reply, it is a binary file, coming from Quicktime's mov, I need to search backward for a string 'free', then change it to 'moov', so search should start from the end of file, any ideas? Thanks, Angelo  --- 2009年6月13日 星期六,Stephen J. Butler 寫道﹕ 寄件人: Stephen J. B

Re: Coming up with ideas

2009-06-13 Thread I. Savant
On Jun 12, 2009, at 11:54 PM, Rick Langschultz wrote: Then code. Then design. Ugh ... -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Fwd: Coming up with ideas

2009-06-13 Thread Chunk 1978
you could:  canvas some small or medium sized businesses in your area to see what app would help them be more productive.  maybe they would contract you to build an app for internal use, or at least give you some ideas.  trying to appeal to the masses is probably more difficult than creating an ama

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-13 Thread Michael Ash
On Fri, Jun 12, 2009 at 8:17 PM, Chunk 1978 wrote: > hum... it seems that Quartz Debugger's Flash Screen function isn't > much help with using the iPhone simulator... since it's an emulator it > will flash the entire screen regardless if setNeedsDisplayInRect is > called. > > which brings me back t

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-13 Thread Chunk 1978
thanks. and sorry, i just assumed it would have been the same on the different platforms. also, i couldn't find the iPhone dev mailing list on apple's site. if you know it offhand please let me know. thanks again. On Sat, Jun 13, 2009 at 3:54 AM, Michael Ash wrote: > On Fri, Jun 12, 2009 at 8:

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-13 Thread Michael Ash
On Sat, Jun 13, 2009 at 4:01 AM, Chunk 1978 wrote: > thanks.  and sorry, i just assumed it would have been the same on the > different platforms.  also, i couldn't find the iPhone dev mailing > list on apple's site.  if you know it offhand please let me know. You couldn't find it because it's a fo

Re: problems with scripting

2009-06-13 Thread Vitaly Ovchinnikov
Finally fixed it, thanks to sdp. The problem was with the command code that should has 8 characters. Mine has 4. Now all seems to work. Thank you. On Sat, Jun 13, 2009 at 8:40 AM, Vitaly Ovchinnikov wrote: > Yes, I read many of them and the command I created should work, as it > almost similar th

Re: NSView directly drawn on screen?

2009-06-13 Thread Michael Ash
On Fri, Jun 12, 2009 at 6:15 PM, John Ku wrote: > I got to play around > with your suggestions but still cannot get it to not loose focus. > Thought it did give me a better perspective on how levels, frames, > keys work. > Thank you for that. > I have the NSWindow and removed NSView for testing, bu

Re: NSView directly drawn on screen?

2009-06-13 Thread Chunk 1978
there should be a way, no? i mean, even built-in spotlight accepts keyboard events without the front app loosing focus. you could try this: activating the focus on your app in order to accept keyboard events, and then resign focus back to the window that had focus. although i think that quick shi

Re: Coming up with ideas

2009-06-13 Thread Mac First
On Jun 12, 2009, at 7:30 PM, Development wrote: Hey, how do you guys come up with ideas for new programs? I'm going nuts trying to figure out what type of application I should make. Make something that *YOU* would want. What problem do YOU have that can be solved with a program? Write tha

Re: Determining whether text fully fits in a box [SOLVED]

2009-06-13 Thread Graham Cox
I found an easy way to do this for my situation, which has only a single text container - just compare the glyph range for the container against the entire glyph range. If they're the same, all text was laid out, if not, it overflowed. --Graham On 13/06/2009, at 12:34 PM, Graham Cox wrot

Re: NSView directly drawn on screen?

2009-06-13 Thread Kyle Sluder
Drawing takes place in a window. That's how OS X works. To get the effect you want, you need to create an LSUIElement application. That will prevent your app from behaving like an app, with a menu bar and dock tile and such. The Almighty Google will tell you more. --Kyle Sluder ___

Re: Coming up with ideas

2009-06-13 Thread Grant Erickson
On 6/12/09 11:34 PM, Graham Cox wrote: > On 13/06/2009, at 1:27 PM, WT wrote: >> On Jun 13, 2009, at 4:36 AM, Graham Cox wrote: >>> On 13/06/2009, at 12:30 PM, Development wrote: Hey, how do you guys come up with ideas for new programs? I'm going nuts trying to figure out what type of app

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-13 Thread Alex Kac
Use Instruments/Core Animation on device. It gives you the same functionality as Quartz Debug in your specific question. On Jun 13, 2009, at 1:01 AM, Chunk 1978 wrote: On Sat, Jun 13, 2009 at 3:54 AM, Michael Ash wrote: On Fri, Jun 12, 2009 at 8:17 PM, Chunk 1978 wrote: hum... it seems th

Re: Coming up with ideas

2009-06-13 Thread I. Savant
On Jun 13, 2009, at 9:13 AM, Grant Erickson wrote: While it is still not as good as Illustrator at what it does ... This discussion is wildly off-topic for cocoa-dev. It would be better off on mac-sb or other non-Cocoa-related forums / lists. -- I.S. _

Re: Discussion to splinter off cocoa-dev list

2009-06-13 Thread Martin Stoufer
If and when this community decided to move forward on this, it would surely be well past September. As for the Dev Forums, they may themselves be the answer to this discussion. I however do not want to raise the bar too high and exclude those on the current list if they choose not to enroll in

re: Detecting text under mouse

2009-06-13 Thread Mr. George Warner
On Sat, 13 Jun 2009 14:48:19 +1000, Jacob Rhoden wrote: > Is it possible to write an application that tracks the mouse over any > application and reads the contents of the text that is under the mouse? > I would like to develop an application that provides context sensitive > translation a

Re: Discussion to splinter off cocoa-dev list

2009-06-13 Thread Kyle Sluder
On Sat, Jun 13, 2009 at 9:55 AM, Martin Stoufer wrote: > BTW, both those links are invalid as of 6/13. All they have up is the WWDC > forum. I'll check back later. Is that the case? Crap, I just sent them an e-mail asking for access to the other forums for all WWDC attendees. --Kyle Sluder _

Setting Up Apple Help

2009-06-13 Thread K. Darcy Otto
Okay, I have got Apple Help working for my application (the first time I have written a help book), and I wanted to encapsulate some of what I have learned in a message, in case others might benefit. The docs about how to set up help are good, but still (for me) left some questions unanswe

Re: Coming up with ideas

2009-06-13 Thread Mr. George Warner
On Sat, 13 Jun 2009 16:34:00 +1000, Graham Cox wrote: > On d) if anyone can point me to a decent open-source kinematics > library I'm all ears... I've considered kinematics pretty much "open-source" since Newton published "Philosophiæ Naturalis Principia Mathematica" in 1687. ;-) I wonder

How can I keep an NSPopUpButton open after the user selects a menu item?

2009-06-13 Thread Dennis Hartigan-O'Connor
I have an NSPopUpButton providing the NSMenu for a status item with a custom view. The popup button displays a list of links. When the user selects a link from the list, the link is displayed in the user's browser (in the background). Naturally, the menu closes every time the user selects a li

Re: SQLite -- same DB, different machines -> different results

2009-06-13 Thread Gregory Weston
On Jun 12, 2009, at 5:30 PM, Тимофей Даньшин wrote: On Jun 11, 2009, at 6:30 PM, Gregory Weston wrote: Timofey wrote: The application is a dictionary. As the user types a word into the searchfield, he/she gets a completion suggestion (much like in Xcode for class or variable or method names

Scrolling NSTokenField -- Clips a little if resized quickly (see movie)

2009-06-13 Thread Jerry Krinock
In the list archives I've seen where others have wanted an NSTokenField in an NSScrollView, and have been stymied by the lack of access to the layout mechanism in NSTokenField. So I worked around this by adding tags one at a time, emulating the layout that NSTokenField must be doing. It's

trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Martin Wierschin
Hi all, I'm trying to set the NSZombieEnabled variable from the debugger, but it fails with a weird error: (gdb) set (BOOL)NSZombieEnabled=1 Could not find OSO file: "" I've done a clean build, made sure ZeroLink is off, and turned off all stripping. I'm not doing any remot

Re: trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Bill Bumgarner
On Jun 13, 2009, at 1:25 PM, Martin Wierschin wrote: I'm trying to set the NSZombieEnabled variable from the debugger, but it fails with a weird error: (gdb) set (BOOL)NSZombieEnabled=1 Could not find OSO file: "" I've done a clean build, made sure ZeroLink is off, and turned

Re: trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Martin Wierschin
Hi Bill, Thanks for your reply. You can't set NSZombieEnabled after a program has started running. You need to set it as an environment variable and restart your app. Actually you can, or at least I have, in many other projects to good effect. I always figured as long as the deallocated o

Re: trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Nick Zitzmann
On Jun 13, 2009, at 2:31 PM, Bill Bumgarner wrote: You can't set NSZombieEnabled after a program has started running. You need to set it as an environment variable and restart your app. Actually, you can. Import Foundation/NSDebug.h and set the variable NSZombieEnabled to YES, and zombie

Re: trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Bill Bumgarner
On Jun 13, 2009, at 1:51 PM, Martin Wierschin wrote: Thanks for your reply. You can't set NSZombieEnabled after a program has started running. You need to set it as an environment variable and restart your app. Actually you can, or at least I have, in many other projects to good effect. I

Re: trying to enable NSZombie, gdb can't find OSO file

2009-06-13 Thread Martin Wierschin
In any case, it seems like there's something really weird going on with this one project. I can't seem to touch any Cocoa from gdb, though other calls are fine: (gdb) po [NSArray array] Could not find OSO file: "" (gdb) p/x (void*)CFDictionaryCreateMutable(0, 99, 0, 0)

Putting files in an flat-file executable

2009-06-13 Thread KK
I was just reading this: < http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigFiles.html#//apple_ref/doc/uid/20002091-SW1 > And I was thinking, is it possible to put other types of files in a flat executable file? Like, a picture file, or even another executa

Re: Putting files in an flat-file executable

2009-06-13 Thread Kyle Sluder
On Sat, Jun 13, 2009 at 2:23 PM, KK wrote: > And I was thinking, is it possible to put other types of files in a flat > executable file? Like, a picture file, or even another executable? You can put anything you want inside an executable. The system doesn't care. But why would you want to? The

Re: Putting files in an flat-file executable

2009-06-13 Thread KK
Well, I'm making a command-line tool that uses another tool, and it would be convenient if that other tool could be packaged right inside the first tool. So, the bundle structure is basically out... Right? On Sat, Jun 13, 2009 at 5:30 PM, Kyle Sluder wrote: > On Sat, Jun 13, 2009 at 2:23 PM, KK

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-13 Thread Chunk 1978
how can i add core animation to the performance tools list? it, and several others, are deactivated. On Sat, Jun 13, 2009 at 12:18 PM, Alex Kac wrote: > Use Instruments/Core Animation on device. It gives you the same > functionality as Quartz Debug in your specific question. > > On Jun 13, 2009,

Re: Putting files in an flat-file executable

2009-06-13 Thread Kyle Sluder
On Sat, Jun 13, 2009 at 2:35 PM, KK wrote: > Well, I'm making a command-line tool that uses another tool, and it would be > convenient if that other tool could be packaged right inside the first tool. > So, the bundle structure is basically out... Right? UNIX has been doing that for 40 years now,

Re: Putting files in an flat-file executable

2009-06-13 Thread Andrew Farmer
On 13 Jun 2009, at 14:35, KK wrote: Well, I'm making a command-line tool that uses another tool, and it would be convenient if that other tool could be packaged right inside the first tool. So, the bundle structure is basically out... Right? You can't execute a binary that doesn't exist as

Re: Putting files in an flat-file executable

2009-06-13 Thread Uli Kusterer
Am 13.06.2009 um 14:35 schrieb KK: Well, I'm making a command-line tool that uses another tool, and it would be convenient if that other tool could be packaged right inside the first tool. That sounds like what you really want is to take the code for that other executable and link it int

Re: NSView directly drawn on screen?

2009-06-13 Thread Uli Kusterer
Am 13.06.2009 um 02:01 schrieb Chunk 1978: there should be a way, no? i mean, even built-in spotlight accepts keyboard events without the front app loosing focus. Not true. Spotlight removes keyboard focus from the front app. Try it in Mail: Put the cursor in the "Subject" text field so it

Re: Putting files in an flat-file executable

2009-06-13 Thread Quincey Morris
On Jun 13, 2009, at 14:35, KK wrote: Well, I'm making a command-line tool that uses another tool, and it would be convenient if that other tool could be packaged right inside the first tool. So, the bundle structure is basically out... Right? This is outside my area of expertise (or even k

Re: Putting files in an flat-file executable

2009-06-13 Thread KK
I guess that would work, but if I were to do that, it would just be easier to package the other tool alongside my tool ( I don't have access to the source code yet, unfortunately). Thanks for the advice. On Sat, Jun 13, 2009 at 7:04 PM, Quincey Morris wrote: > On Jun 13, 2009, at 14:35, KK wrote

Re: NSView directly drawn on screen?

2009-06-13 Thread Andy Lee
On Jun 12, 2009, at 6:42 PM, John Ku wrote: Here is a wild wild guess, perhaps I want to have my NSWindow to somehow belong to the menubar application. So technically, it looks like a window, but actually is just NSView drawn out from the menubar with no NSWindow but accepts keyboard/mouse

Re: NSView directly drawn on screen?

2009-06-13 Thread Andy Lee
Hm, I did a quick experiment and haven't been able to achieve what (I think) you want. Anyway, I should probably have looked more closely at other replies -- Kyle's suggestion about LSUIElement looks promising. --Andy On Jun 13, 2009, at 7:57 PM, Andy Lee wrote: On Jun 12, 2009, at 6:42 P

ImageKit programming guide crop tool problem.

2009-06-13 Thread John Cebasek
Hi All: I've got to do some 'image processing' in my application and have started with the ImageKit Programming Guide. Everything works except cropping (which is the feature I need). Also, the image I have is a jpeg, if that makes any difference. As per the guide, here's the code: -(IBAc

Re: Coming up with ideas

2009-06-13 Thread Graham Cox
On 14/06/2009, at 3:13 AM, Mr. George Warner wrote: > On d) if anyone can point me to a decent open-source kinematics > library I'm all ears... I've considered kinematics pretty much "open-source" since Newton published "Philosophiæ Naturalis Principia Mathematica" in 1687. ;-) I wonder ho

Re: Coming up with ideas

2009-06-13 Thread Quincey Morris
On Jun 13, 2009, at 17:35, Graham Cox wrote: On 14/06/2009, at 3:13 AM, Mr. George Warner wrote: I've considered kinematics pretty much "open-source" since Newton published "Philosophiæ Naturalis Principia Mathematica" in 1687. ;-) Well, this is the problem. I'm not super hot on maths, so f

Re: NSView directly drawn on screen?

2009-06-13 Thread Kyle Sluder
Well, I know it's possible in general because we do it in OmniFocus with the Quick Entry window. But OmniFocus is a full blown app, whereas John really seems to desire an LSUIElement. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: searching a string in big file

2009-06-13 Thread Andrew Farmer
On 13 Jun 2009, at 00:27, Angelo Chen wrote: Hi Stephen, Thanks for the quick reply, it is a binary file, coming from Quicktime's mov, I need to search backward for a string 'free', then change it to 'moov', so search should start from the end of file, any ideas? Thanks, Angelo This is n

Re: Discussion to splinter off cocoa-dev list

2009-06-13 Thread Michael Ash
On Sat, Jun 13, 2009 at 12:55 PM, Martin Stoufer wrote: > If and when this community decided to move forward on this, it would surely > be well past September. > > As for the Dev Forums, they may themselves be the answer to this discussion. > I however do not want to raise the bar too high and excl

Blur NSImage

2009-06-13 Thread Pierce Freeman
Hi Everyone: I will say before hand that I don't really want to dive into Quartz, etc. at the moment and simply want to stick with the "image basics". Anyway, I am making a fullscreen app that has window with a NSImageView that fills the screen. I only say this as it may change how to address th

Re: Blur NSImage

2009-06-13 Thread Kyle Sluder
Look into Core Image filters. You can apply them to any layer-backed view. You can even do it from within Interface Bulder, on the View Effects tab of the inspector. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Blur NSImage

2009-06-13 Thread Rob Keniger
On 14/06/2009, at 1:09 PM, Pierce Freeman wrote: I will say before hand that I don't really want to dive into Quartz, etc. at the moment and simply want to stick with the "image basics". Anyway, I am making a fullscreen app that has window with a NSImageView that fills the screen. I only

Re: Discloser triangle

2009-06-13 Thread cocoa learner
Thnx kyle for ur response.But I found other way to do this. Here is how I am achieving the task - 1>. Create a new NSRect with desired origin and size. 2>. Call setFrame:display:anumate of window member function. And I am done. Regards Cocoa.learner. On Fri, Jun 12, 2009 at 10:41 PM, Kyle Slude

Re: Blur NSImage

2009-06-13 Thread Michael Vannorsdel
To reiterate, this is probably the best solution if you want to blur all images that will be set on this image view. From IB you just activate the Core Animation layer for the image view and attach the gaussian blur filter to it. Then every image it displays will be blurred automatically.

Re: Detecting text under mouse

2009-06-13 Thread Jacob Rhoden
That is exactly what I am looking for, a "Dictionary" application is essentially assisting you with being able to read information on the screen. Unfortunately I cannot find any documentation at all on how to access a programs accessable information! The only information I can find are pages an

Re: Discloser triangle

2009-06-13 Thread Kyle Sluder
On Sat, Jun 13, 2009 at 9:37 PM, cocoa learner wrote: > But I found other way to do this. Here is how I am achieving the task - That would be, in fact, the way I was recommending to you. A little light on the details, yes, but it seems like you were more than able to figure out the rest on your o

Re: NSColorWell and bindings

2009-06-13 Thread Lorenzo Thurman
The link to storing NSColor in defaults was helpful. It reinforced what I thought I already knew, but it appears that real problem was storing a system color, [NSColor selectedMenuItemColor], instead of a color constant such as [NSColor blueColor]. I created a simple project just to help troublesho

Re: Detecting text under mouse

2009-06-13 Thread Rob Keniger
On 14/06/2009, at 2:57 PM, Jacob Rhoden wrote: That is exactly what I am looking for, a "Dictionary" application is essentially assisting you with being able to read information on the screen. Unfortunately I cannot find any documentation at all on how to access a programs accessable infor

Showing a menu in an arbitrary position

2009-06-13 Thread Francisco Tolmasky
I would like to pop up a menu that has an associated NSSearchField in a separate window hovering above it in order to make this menu (which has many items), searchable. To do this, I think it would be optimal to be able to specify the rect in which the menu should appear and be limited to,

Re: Detecting text under mouse

2009-06-13 Thread Greg Guerin
Jacob Rhoden wrote: Does anyone know where I might find information on how to detect the accessability information under the mouse cursor? Search with the word spelled "accessibility", not "accessability". http://developer.apple.com/search/search.html There are only 2 hits with the missp