Re: How to draw text with fade out effect?

2009-01-29 Thread Oleg Krupnov
Yeah, the question is however how do I technically (e.g. in Cocoa) composite the "appropriate alpha" with an image, whether the background image, as you suggest, or with text image, as Ricky suggested. AFAIU, there is not such NSCompositingOperation to do this trick. It appears that I need to iter

Re: How to draw text with fade out effect?

2009-01-29 Thread Rob Keniger
On 29/01/2009, at 6:27 PM, Oleg Krupnov wrote: Yeah, the question is however how do I technically (e.g. in Cocoa) composite the "appropriate alpha" with an image, whether the background image, as you suggest, or with text image, as Ricky suggested. AFAIU, there is not such NSCompositingOperati

NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Stefano Pigozzi
Hello, Is there a way to display "half ratings" with NSLevelIndicator? For example having a rating of 4.5 would correspond to 4 stars and a half. It would be cool because I have to display some ratings on a scale from 0 to 10. Thank you in advance :) Stefano Pigozzi _

Re: How to draw text with fade out effect?

2009-01-29 Thread matt . gough
On 29 Jan 2009, at 09:33, Rob Keniger wrote: On 29/01/2009, at 6:27 PM, Oleg Krupnov wrote: Yeah, the question is however how do I technically (e.g. in Cocoa) composite the "appropriate alpha" with an image, whether the background image, as you suggest, or with text image, as Ricky suggested

Re: NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Matt Gough
On 29 Jan 2009, at 11:13, Stefano Pigozzi wrote: Hello, Is there a way to display "half ratings" with NSLevelIndicator? For example having a rating of 4.5 would correspond to 4 stars and a half. It would be cool because I have to display some ratings on a scale from 0 to 10. Not trie

change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
hi, everybody. I have a problem: Can I change styleMask when my app already is launch? When app is launching i use NSBorderlessWindowMask, when i press any button i wanna use NSTitledWindowMask? ___ Cocoa-dev mailing list (Cocoa-dev@lis

NSURLConnection & ignoring untrusted server certificates

2009-01-29 Thread Erg Consultant
When I try to connect to my web server using NSURLConneciton thusly: loadedData = [ NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error ]; The data comes back with a zero length. Inspecting the error reveals that it's an untrusted server certificate error. Is

Re: NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Stefano Pigozzi
Just tried it, and [indicator setDoubleValue: 4.5] ends up showing 5 stars (setFloatValue gives same result). I'll probably have to make my custom control :( Stefano On Jan 29, 2009, at 11:24 AM, Matt Gough wrote: On 29 Jan 2009, at 11:13, Stefano Pigozzi wrote: Hello, Is there a way

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Mike Abdullah
1) Changing the UI like this is almost always a bad idea 2) You can't change the style of a window once launched. But, you can close the old window and replace it with a new one in exactly the same location. Mike. On 29 Jan 2009, at 10:25, Carlo Gulliani wrote: hi, everybody. I have a

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
i thought about it, but my app contain webView object, which is loading flash's animation. If i close first window and create new window with NSTitledWindowMask my flash animation is playing again from first frame. From: Mike Abdullah To: Carlo Gulliani Cc: C

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Mike Abdullah
But everything inside the window is an NSView or a derivative. What happens if you: 1) Create new window 2) Remove all subviews from the original window's contentView. 3) Add these subviews into the new window's contentView. 4) Dispose of the old window. On 29 Jan 2009, at 11:38, Carlo Gullian

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
thanks, i'll try it, if i understood correctly, i should "copy" my all subviews to new window, and remove all subviews from old window, but i don't understand how can i save current time in my flash, but if i copied subview i think it will start from 1st frame? can you show me a part of code whi

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread Carlos Eduardo Mello
On Jan 29, 2009, at 12:56 AM, Jim Correia wrote: On Jan 28, 2009, at 9:44 PM, Adam Gerson wrote: "For performance reasons, Cocoa does not enforce clipping among sibling views or guarantee correct invalidation and drawing behavior when sibling views overlap." It is my understanding that this p

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Sean McBride
Carlo Gulliani (carlogulli...@yahoo.com) on 2009-01-29 7:28 AM said: >thanks, i'll try it, if i understood correctly, i should "copy" my all >subviews to new window, and remove all subviews from old window, but i >don't understand how can i save current time in my flash, but if i >copied subview i

RE: -finstrument-functions and program startup

2009-01-29 Thread Karan, Cem (Civ, ARL/CISD)
Greg Parker wrote on Wednesday, January 28, 2009 4:22 PM > On Jan 28, 2009, at 10:33 AM, Karan, Cem (Civ, ARL/CISD) wrote: > > First off, I know this question is going to the wrong list, > but I have > > NO idea which list would be best. If anyone wants to jump > in and tell > > me a better l

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
i understood and solved it, but both windows i need for switching between normal mode and full screen mode. I have 2 buttons for switching and the best way to create method which will to create new window, than remove old window and rewrite old window new window, and after removing nev window re

Query on CrashReporter

2009-01-29 Thread Arnab Ganguly
Hi All, Any information you have about the implementation of CrashReporter.app in Mac? There is a requirement to develop similar application.Like how the stack crawling, unwinding is done correctly and dependency across architectures?Any help or suggestion would be of great help. Thanks in advance

Re: Query on CrashReporter

2009-01-29 Thread Torsten Curdt
Hey Arnab, First off: Cross-posting like that is big no-no. I am not quite sure I understand exactly what you are after. But you might want to have a look here: http://vafer.org/projects/feedbackreporter/ HTH -- Torsten ___ Cocoa-dev mailing list (C

Re: Query on CrashReporter

2009-01-29 Thread Sean McBride
On 1/29/09 8:36 PM, Arnab Ganguly said: >Thanks for the info.I am looking forward to develop similar to >Crashreporter.It is going to do the stack crawling and unwinding, taking >care of different processor architectures. Then you're on the wrong list really. Cocoa does not provide such low- lev

Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?

2009-01-29 Thread JongAm Park
Thank you for your comment. Shawn Erickson wrote: A lock? As in NSLock, etc.? Why do you think you need a lock here given it isn't multi-thread and the fact that IO appears to be driven by a runloop which will serialize access for you. At first, I was not sure if the Run-Loop was implemented

Re: Query on CrashReporter

2009-01-29 Thread Arnab Ganguly
Thanks for the info.I am looking forward to develop similar to Crashreporter.It is going to do the stack crawling and unwinding, taking care of different processor architectures. The url you gave me seems to be looking into the carshlog and sending feedback.I need look into it in more detailed. Tha

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread Corbin Dunn
Le Jan 29, 2009 à 5:13 AM, Carlos Eduardo Mello a écrit : On Jan 29, 2009, at 12:56 AM, Jim Correia wrote: On Jan 28, 2009, at 9:44 PM, Adam Gerson wrote: "For performance reasons, Cocoa does not enforce clipping among sibling views or guarantee correct invalidation and drawing behavior w

Why does NSTableView stop responding to validateMenuItem: ?

2009-01-29 Thread knowles . doug
Hi, all, My application at times starts throwing exceptions in my menu item validation code: -[NSTableView validateMenuItem:]: unrecognized selector sent to instance 0x15e80850 The offending line is in my document class's menu validation logic: else if ( action == @selector(selectAll:) )

Re: [Q] efficient or good model for send/receive with streams scheduled in runloop?

2009-01-29 Thread Michael Ash
On Thu, Jan 29, 2009 at 10:16 AM, JongAm Park wrote: > Thank you for your comment. > > Shawn Erickson wrote: >> >> A lock? As in NSLock, etc.? Why do you think you need a lock here >> given it isn't multi-thread and the fact that IO appears to be driven >> by a runloop which will serialize access

Re: Why does NSTableView stop responding to validateMenuItem: ?

2009-01-29 Thread Andy Lee
On Jan 29, 2009, at 10:41 AM, knowles.d...@gmail.com wrote: Using the debugger, I've sent respondsToSelector: messages to it with selectors of various methods an NSTableView should respond to, and the only response that comes back wrong is validateMenuItem: NSTableView does not implement the

Re: NSURLConnection & ignoring untrusted server certificates

2009-01-29 Thread Nick Zitzmann
On Jan 28, 2009, at 10:41 PM, Erg Consultant wrote: The data comes back with a zero length. Inspecting the error reveals that it's an untrusted server certificate error. Is there any way to ignore certificates in my request, or to tell NSURLConnection to ignore/not use them or to get the d

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread Jesper Storm Bache
It is my understanding that this piece of documentation is out of date, and that on 10.5 and later overlapping sibling views are fully supported. I wouldn't mind having a definitive answer to this question (Apple guys?), because my UI design would need to be completely different depending on thi

Re: -finstrument-functions and program startup

2009-01-29 Thread Shawn Erickson
On Thu, Jan 29, 2009 at 6:09 AM, Karan, Cem (Civ, ARL/CISD) wrote: > Greg Parker wrote on Wednesday, January 28, 2009 4:22 PM > >> On Jan 28, 2009, at 10:33 AM, Karan, Cem (Civ, ARL/CISD) wrote: >> > First off, I know this question is going to the wrong list, >> but I have >> > NO idea which list

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Alexander Spohr
Maybe just use NSView for your task? - (BOOL)enterFullScreenMode:(NSScreen *)screen withOptions: (NSDictionary*)options atze Am 29.01.2009 um 15:16 schrieb Carlo Gulliani: i understood and solved it, but both windows i need for switching between normal mode and full screen mode.

How to debug a loadNib error in a Release version?

2009-01-29 Thread Steve Cronin
Folks; An Australian tester is reporting the crash shown below... How can I best attack this problem? What kind of IB setting causes a 'makeObjectsPerformSelector:'? I do not directly call such a method in my code at all. What do I make of the 'CFRelease' at frame 0? What can I do to facilitate

Re: Check URL Status

2009-01-29 Thread Mr. Gecko
ok I got it together and it's working just fine On Jan 28, 2009, at 7:13 PM, Mike Abdullah wrote: On 29 Jan 2009, at 00:30, Mr. Gecko wrote: but wouldn't that return the data of the file it self as well? Because I don't want the data because it's like 130MB and it'll take a long time to g

Interface Builder Plugin Dependency

2009-01-29 Thread Bridger Maxwell
Hey, I created a custom Interface Builder plug-in, which seemed to work great until I actually used it in another project. When I place one of my custom controls in MainMenu.xib and try to compile, I get this error: /* com.apple.ibtools.errors */ Internal Error: Description: Unable to resolve pl

NSTask Leaking...

2009-01-29 Thread Mr. Gecko
Hello, I'm trying to make my own licenses system and I need MD5 to verify that the key in the file is right and isn't a fake. what I've got now is a NSTask that runs md5 -s salt+key+salt2 and it works, but I am getting a leak with NSTask... I would like to find out how to get rid of that leak;

Re: NSTask Leaking...

2009-01-29 Thread Mr. Gecko
I forgot to tell that the releasing of NSTask is crashing it... ___ 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 H

Re: NSTask Leaking...

2009-01-29 Thread Stephen J. Butler
On Thu, Jan 29, 2009 at 12:20 PM, Mr. Gecko wrote: >[theTask setStandardOutput:[outPipe autorelease]]; The autorelease here is wrong... >[theTask setLaunchPath:@"/sbin/md5"]; >[theTask setCurrentDirectoryPath:@"~/"]; >[theTask setArguments:[[NSArray arrayWithObjec

Re: NSTask Leaking...

2009-01-29 Thread Nick Zitzmann
On Jan 29, 2009, at 12:20 PM, Mr. Gecko wrote: [theTask setArguments:[[NSArray arrayWithObjects:@"-s", MD5, nil] autorelease]]; This is incorrect and should be causing a crash, unless you're using GC. +arrayWithObjects: already returns an autoreleased object. NSString *rMD5 = NSStr

Re: NSTask Leaking...

2009-01-29 Thread Vitaly Ovchinnikov
At least one leak is here: >NSString *rMD5 = NSString alloc] initWithData:.]; You just put new string object to rMD5 and now need to release it. >... >rMD5 = [self replace:@"\n" with:@"" source:rMD5]; You just created another string object that you don't need to r

Re: NSTask Leaking...

2009-01-29 Thread glenn andreas
On Jan 29, 2009, at 12:20 PM, Mr. Gecko wrote: Hello, I'm trying to make my own licenses system and I need MD5 to verify that the key in the file is right and isn't a fake. what I've got now is a NSTask that runs md5 -s salt+key+salt2 and it works, but I am getting a leak with NSTask... R

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread Timothy Wood
On Jan 28, 2009, at 5:15 PM, Slava Pestov wrote: Hi all, When I render text into a CGBitmapContext that has been filled with a solid color, sub-pixel font smoothing is not applied and text looks suboptimal compared to text rendered elsewhere. How can I enable font smoothing? Calling CGContextS

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread David Duncan
On Jan 28, 2009, at 5:15 PM, Slava Pestov wrote: When I render text into a CGBitmapContext that has been filled with a solid color, sub-pixel font smoothing is not applied and text looks suboptimal compared to text rendered elsewhere. How can I enable font smoothing? Calling CGContextSetShouldSm

RE: -finstrument-functions and program startup

2009-01-29 Thread Karan, Cem (Civ, ARL/CISD)
Shawn Erickson wrote on Thursday, January 29, 2009 11:56 AM: > DTrace is probe based. If a probe exists and is enabled it > will fire and allow you to collect information. > > For example try the following in terminal... > > sudo dtrace -n 'syscall:::entry' > > With that said you need a provid

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread Corbin Dunn
On Jan 29, 2009, at 8:30 AM, Jesper Storm Bache wrote: It is my understanding that this piece of documentation is out of date, and that on 10.5 and later overlapping sibling views are fully supported. I wouldn't mind having a definitive answer to this question (Apple guys?), because my UI des

Re: How to debug a loadNib error in a Release version?

2009-01-29 Thread Corbin Dunn
On Jan 29, 2009, at 9:54 AM, Steve Cronin wrote: Folks; An Australian tester is reporting the crash shown below... How can I best attack this problem? What kind of IB setting causes a 'makeObjectsPerformSelector:'? -awakeFromNib is being called. I do not directly call such a method in my c

Re: NSLevelIndicator Rating with "half" stars

2009-01-29 Thread Corbin Dunn
On Jan 29, 2009, at 2:56 AM, Stefano Pigozzi wrote: Just tried it, and [indicator setDoubleValue: 4.5] ends up showing 5 stars (setFloatValue gives same result). I'll probably have to make my custom control :( Please do log a bug request asking for this feature. corbin _

Re: -finstrument-functions and program startup

2009-01-29 Thread Benjamin Stiglitz
> I don't believe an Apple provider exist (or can exist) for general > probing of C++ or C function entry and exit. You will have to > instrument C++ methods and C function (aka make your own provider) to > be able to use DTrace for what I think you are attempting to do. Actually, a probe of 'pidn

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
great thanks!!! i made so and it works, moreover i made so, that my keyboard's buttons are works too, but how use Mouse event? I read, that enterFullScreenMode override all keyboard's and mouse's events. My subclass of NSApplication is listening keyboard events, but i also wanna listen Mouse ev

Re: NSTask Leaking...

2009-01-29 Thread Mr. Gecko
I'm just going to use sscrypto framework for it... On Jan 29, 2009, at 12:39 PM, glenn andreas wrote: On Jan 29, 2009, at 12:20 PM, Mr. Gecko wrote: Hello, I'm trying to make my own licenses system and I need MD5 to verify that the key in the file is right and isn't a fake. what I've got no

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread douglas welton
Where did you read that enterFullScreenMode overrides all keyboard and mouse events? That is not true. If your view needs to respond to keyboard and mouse events, make sure that your view is the window's first responder. regards, douglas On Jan 29, 2009, at 2:29 PM, Carlo Gulliani wrote:

Re: Plain Text UTI Madness

2009-01-29 Thread Seth Willits
On Jan 28, 2009, at 6:34 PM, Sean McBride wrote: I have a file without an extension, which in Finder is shown as "Plain text", has kMDItemKind = "Plain text", and yet kMDItemContentType is "public.data" -- what gives? Why is it a plain text "kind" of file, but not public.plain-text? Does thi

Re: How to debug a loadNib error in a Release version?

2009-01-29 Thread Steve Cronin
Corbin; Thanks for responding! I don't understand "..Symbolicate your backtrace.." Can you take a moment and educate me on this? Thanks! Steve On Jan 29, 2009, at 1:24 PM, Corbin Dunn wrote: On Jan 29, 2009, at 9:54 AM, Steve Cronin wrote: Folks; An Australian tester is reporting the cras

Re: How to debug a loadNib error in a Release version?

2009-01-29 Thread Nick Zitzmann
On Jan 29, 2009, at 1:54 PM, Steve Cronin wrote: I don't understand "..Symbolicate your backtrace.." Can you take a moment and educate me on this? You did keep the dSYM bundle used to build the release binary, right? If you did, then you can use dwarfdump with the --lookup flag to trans

Re: Plain Text UTI Madness

2009-01-29 Thread Sean McBride
On 1/29/09 11:52 AM, Seth Willits said: >>> I have a file without an extension, which in Finder is shown as >>> "Plain >>> text", has kMDItemKind = "Plain text", and yet kMDItemContentType is >>> "public.data" -- what gives? Why is it a plain text "kind" of file, >>> but not public.plain-text? >>

Re: How to debug a loadNib error in a Release version?

2009-01-29 Thread Sean McBride
On 1/29/09 1:54 PM, Steve Cronin said: >Thanks for responding! >I don't understand "..Symbolicate your backtrace.." > >Can you take a moment and educate me on this? -- Sean McBr

Re: NSURLConnection & ignoring untrusted server certificates

2009-01-29 Thread ainxow
this should be useful: http://www.cocoabuilder.com/archive/message/cocoa/2008/4/16/204328 ___ 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-

Re: -finstrument-functions and program startup

2009-01-29 Thread Shawn Erickson
On Thu, Jan 29, 2009 at 11:25 AM, Benjamin Stiglitz wrote: >> I don't believe an Apple provider exist (or can exist) for general >> probing of C++ or C function entry and exit. You will have to >> instrument C++ methods and C function (aka make your own provider) to >> be able to use DTrace for wh

Re: Plain Text UTI Madness

2009-01-29 Thread Seth Willits
On Jan 29, 2009, at 12:00 PM, Sean McBride wrote: Note also that there is no standard file metadata that you can attach a UTI too. This would be handy for files you create yourself, and would be a nice replacement for the HFS type. Indeed. I actually went looking for a method that did just

Core data storage of objects whose class is loaded from a bundle

2009-01-29 Thread Rick Hoge
I am working on an app in which plugin subclasses are loaded from bundles at launch time (didFinishLaunching in app delegate). The base plugin class is specified in a framework against which the main app is linked. I can create instances of these dynamically loaded subclasses, and assi

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread Timothy Wood
cs, but maybe I missed it. Here is my test case <http://people.omnigroup.com/bungi/TextDrawing-20090129.zip > Thanks! -tim ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread Carlo Gulliani
oh, i don't know what to do, i wrote so: NSView *view = [self contentView]; NSDictionary*opts = [NSDictionarydictionaryWithObjectsAndKeys:[NSNumbernumberWithBool:YES], NSFullScreenModeAllScreens, nil]; [selffadeOut]; [selfmakeFirstResponder: self]; if([view isInFullScreenMode]) [view exitFu

Re: Why does NSTableView stop responding to validateMenuItem: ?

2009-01-29 Thread Doug Knowles
Thanks for the response, but... As I understand it, NSMenuValidation is an informal protocol and doesn't have to be declared as implemented; in fact, I can't find a class that does. Maybe I should lose my Obj-C license for asking, but isn't it sufficient that NSObject declares and implements valid

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread David Duncan
On Jan 29, 2009, at 12:34 PM, Timothy Wood wrote: On Jan 29, 2009, at 10:56 AM, David Duncan wrote: Its been a while since I last looked at this, but I think the context's format needs to be native endian (add the kCGBitmapByteOrder32Host flag). Heh; I totally would not have expected tha

Re: change NSBorderlessWindowMask on NSTitledWindowMask when app is launch. how?

2009-01-29 Thread douglas welton
this line: [self makeFirstResponder: self]; should probably be: [self makeFirstResponder: view]; this is assuming that "self" is your window an "view" is the view being fullScreen-ed On Jan 29, 2009, at 3:35 PM, Carlo Gulliani wrote: oh, i don't know what to do, i wr

Re: -finstrument-functions and program startup

2009-01-29 Thread Benjamin Stiglitz
Actually, a probe of 'pidnnn:::entry' works just great (where nnn is the target process' pid.) Check out the pid provider documentation: Only for code that has such probes compiled into functions / methods. Apple has th

Re: Why does NSTableView stop responding to validateMenuItem: ?

2009-01-29 Thread Andy Lee
On Jan 29, 2009, at 3:37 PM, Doug Knowles wrote: Thanks for the response, but... As I understand it, NSMenuValidation is an informal protocol and doesn't have to be declared as implemented; in fact, I can't find a class that does. Maybe I should lose my Obj-C license for asking, but isn't

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread Kyle Sluder
On Thu, Jan 29, 2009 at 2:16 PM, Corbin Dunn wrote: > Sorry; I should have mentioned there are some exceptions...most notably > things with isolated CoreAnimation layer backed view-trees, and gl views. Hrmm, that makes me wonder what happens if one uses overlapping sibling views with QuartzGL...

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread Timothy Wood
On Jan 29, 2009, at 12:41 PM, David Duncan wrote: Yea, its not documented, and its probably more of a quirk of the font rendering than anything else. It works today, and primarily I offer the solution because if it stops working in the future, the worst that will happen is you will get text

Re: NSTask Leaking...

2009-01-29 Thread Jeremy Pereira
On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it... If a malicious person can replace an executable with his own, he can probably also replace a framework... Regardless of any other problems, you've introduced a serious weakness - a hacker j

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread David Duncan
On Jan 29, 2009, at 1:07 PM, Kyle Sluder wrote: On Thu, Jan 29, 2009 at 2:16 PM, Corbin Dunn wrote: Sorry; I should have mentioned there are some exceptions...most notably things with isolated CoreAnimation layer backed view-trees, and gl views. Hrmm, that makes me wonder what happens if

Save changes prompt in non-document app

2009-01-29 Thread Andy Bettis
Hi, This should be simple enough - I have a non-document application with a simple one-window interface. I'd like to pop up a 'save changes, discard, cancel' sheet when Quit is chosen or the window is closed, the same way that a document based app would. But I can't quite work out where t

CGAffintransform and UIImage Views

2009-01-29 Thread nasser salami
Hello, im a newbie iphone developer and i m trying to smoothly scale an image view up and then return to the original state. here what i did but it did not work : //code start [UIView beginAnimations:nil context:null]; [UIView setAnimationDuration:0.5]; CGAffineTransform transform = CGAffineTra

Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle

2009-01-29 Thread Rick Hoge
Not surprisingly, the problem had nothing to do with loading the classes via plugins. In my plugin subclasses I was calling -initWithCoder: as follows: -(id)initWithCoder:(NSCoder*)decoder { self = [super initWithCoder:decoder]; // Returns instance of parent class return self; } w

Securing Web Service Communication

2009-01-29 Thread Matt Keyes
Hello, I have received some help on this in the past, but we are trying to connect an iPhone application to a .NET XML SOAP Web Service. I can connect the iPhone to the web service but I do not know what I should do to secure this (i.e. with user credentials, etc.). Does anyone know any exa

Re: NSTask Leaking...

2009-01-29 Thread Chris Suter
Hi Mr Gecko, On Fri, Jan 30, 2009 at 6:33 AM, Mr. Gecko wrote: > I'm just going to use sscrypto framework for it... You don't need to use a third party framework for crypto stuff. There are common hashing functions built in to libSystem. Look at the CC_crypto man page. If you need other crypto

Re: NSURLConnection & ignoring untrusted server certificates

2009-01-29 Thread Scott Anguish
and in the meantime, don't use the private API. If it changes, your app breaks. On 29-Jan-09, at 11:09 AM, Nick Zitzmann wrote: On Jan 28, 2009, at 10:41 PM, Erg Consultant wrote: The data comes back with a zero length. Inspecting the error reveals that it's an untrusted server certificat

Re: NSTask Leaking...

2009-01-29 Thread Jean-Daniel Dupas
Le 29 janv. 09 à 22:20, Jeremy Pereira a écrit : On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it... If a malicious person can replace an executable with his own, he can probably also replace a framework... Why using a library when the libSys

Re: -finstrument-functions and program startup

2009-01-29 Thread Shawn Erickson
On Thu, Jan 29, 2009 at 12:55 PM, Benjamin Stiglitz wrote: > That's not correct—the pid provider instruments every user function call in > the target (well, every one that has an externally visible symbol). Ah must be lack of symbols preventing it from working in my tests. Was only ever getting

Re: Plain Text UTI Madness

2009-01-29 Thread Gregory Weston
Sean McBride wrote: I have a file without an extension, which in Finder is shown as "Plain text", has kMDItemKind = "Plain text", and yet kMDItemContentType is "public.data" -- what gives? Why is it a plain text "kind" of file, but not public.plain-text? Does this extension-less file have a

Re: -finstrument-functions and program startup

2009-01-29 Thread Benjamin Stiglitz
> How is this instrumentation done? I guess the text segment is modified > in RAM when the pid provider is attached to the process? Yes, when a probe is enabled a small thunk is dropped in that calls out to the DTrace pieces in the kernel and logs the event. USDT probes work similarly, but insert

Re: NSTask Leaking...

2009-01-29 Thread Mr. Gecko
not if I take the parts for MD5 and place it in my own binary. On Jan 29, 2009, at 3:19 PM, Jeremy Pereira wrote: On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it... If a malicious person can replace an executable with his own, he can probably al

Partially Transparent windows

2009-01-29 Thread Joe Turner
I've noticed that some applications I see have partially transparent windows. What I mean by this, is that the window is 100% opaque in most parts, but then there's a 50% transparent part (you can see your desktop through the window). I am wondering if there is a simple way to do this, or i

Re: NSTask Leaking...

2009-01-29 Thread Mr. Gecko
but for an example, How would I implement it? is there any example applications out there? On Jan 29, 2009, at 3:35 PM, Jean-Daniel Dupas wrote: Le 29 janv. 09 à 22:20, Jeremy Pereira a écrit : On 29 Jan 2009, at 19:33, Mr. Gecko wrote: I'm just going to use sscrypto framework for it...

problems resetting timer interval.

2009-01-29 Thread Memo Akten
Hi All, I'd like a function that sets up a timer, and can also change the frequency, but I just can't get it to work. If I call it more than once it just stops calling the timerLoop function altogether. I've tried so many things including not actually scheduling the timer in the setFrameRat

Re: -finstrument-functions and program startup

2009-01-29 Thread Colin Wheeler
Specify the methods you want to trace in the probefunc section. For example if you want to trace what lead up to and happened after a specific method you could do something like BEGIN { self->traceme = 0; } pid$target:::entry { self->traceme = 1; ustack(); } pid$target:::entry, pid$target:::retur

Re: Why does NSTableView stop responding to validateMenuItem: ?

2009-01-29 Thread Jason Foreman
On Thu, Jan 29, 2009 at 2:37 PM, Doug Knowles wrote: > And why is the exception only thrown infrequently (and persistently once it > starts), when it's normally successfully invoked every time a click on the > respective menu? The real question is why is the exception not thrown every time. NSTab

Re: [Solved - duh!] Core data storage of objects whose class is loaded from a bundle

2009-01-29 Thread Nick Zitzmann
On Jan 29, 2009, at 2:32 PM, Rick Hoge wrote: -(id)initWithCoder:(NSCoder*)decoder { self = [super initWithCoder:decoder]; // Returns instance of parent class return self; } which was returning an instance of the parent class and not the subclass. Then you've got something strange

viewDidLoad called after viewWillAppear:

2009-01-29 Thread Rod Schmidt
I've been having this problem for awhile. I display a view controller and its view by calling presentModalViewController:animated:. Typically I call initWithNibName: in the init method of the view controller being passed to presentModalViewController:. Tracing the code viewDidLoad is called

Re: Partially Transparent windows

2009-01-29 Thread Steve Christensen
On Jan 29, 2009, at 2:04 PM, Joe Turner wrote: I've noticed that some applications I see have partially transparent windows. What I mean by this, is that the window is 100% opaque in most parts, but then there's a 50% transparent part (you can see your desktop through the window). I am wond

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Joey Hagedorn
Bridger, Which version of Interface Builder are you using? Do you have multiple installations of the developer tools on your system? -Joey On Jan 29, 2009, at 10:14 AM, Bridger Maxwell wrote: Hey, I created a custom Interface Builder plug-in, which seemed to work great until I actually

re: Core data storage of objects whose class is loaded from a bundle

2009-01-29 Thread Ben Trumbull
I am working on an app in which plugin subclasses are loaded from bundles at launch time (didFinishLaunching in app delegate). The base plugin class is specified in a framework against which the main app is linked. I can create instances of these dynamically loaded subclasses, and assign them as

Re: Plain Text UTI Madness

2009-01-29 Thread Sean McBride
On 1/29/09 4:48 PM, Gregory Weston said: > I have a file without an extension, which in Finder is shown as > "Plain > text", has kMDItemKind = "Plain text", and yet kMDItemContentType > is > "public.data" -- what gives? Why is it a plain text "kind" of file, > but not publi

Re: NSTask Leaking...

2009-01-29 Thread Jean-Daniel Dupas
unsigned char digest[CC_MD5_DIGEST_LENGTH]; if (CC_MD5([fileData bytes], [fileData length], digest)) { // md5 stored in digest. } else { // handle error } And if you file is to big to be hash at once, use whatever you want to read it one by chunks. char buffer[1024]; CC_MD5_CTX ctxt; CC_M

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Bridger Maxwell
It turns out the error is completely different from what I thought it was (isn't it always?). It turns out Xcode was omitting part of the output from IBTool. When I tried to compile my xib from Terminal, I got this error: Description: ibtool encountered an error while loading the ibplugin from /Us

Re: problems resetting timer interval.

2009-01-29 Thread Ron Fleckner
On 30/01/2009, at 9:07 AM, Memo Akten wrote: Hi All, I'd like a function that sets up a timer, and can also change the frequency, but I just can't get it to work. If I call it more than once it just stops calling the timerLoop function altogether. I've tried so many things including not ac

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Gary L. Wade
Looks like your plug-in is being running as a tool without a connection to the window server. On 01/29/2009 3:54 PM, "Bridger Maxwell" wrote: > It turns out the error is completely different from what I thought it was > (isn't it always?). It turns out Xcode was omitting part of the output from

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Joey Hagedorn
Bridger, Because ibtool runs from the command line, it is executed without a connection to the window server so it can be run remotely in non- graphical login sessions. This environment might exist, for example, on a build server with nobody logged in at the console. You'll need to find an

Re: NSTask Leaking...

2009-01-29 Thread Kirk Kerekes
// must include Security framework to use this // Tiger or later for SHA256 #import "libCdsaCrypt.h" @implementation NSData (DataDigest) - (NSData *) digestWithCDSAType:(CSSM_ALGORITHMS) algorithm { // does not validate algorithm selection, let the framework worry about that. NSData

Re: Query on CrashReporter

2009-01-29 Thread Daniel Waylonis
On Jan 29, 2009, at 7:06 AM, Arnab Ganguly wrote: Thanks for the info.I am looking forward to develop similar to Crashreporter.It is going to do the stack crawling and unwinding, taking care of different processor architectures. The url you gave me seems to be looking into the carshlog and s

NSOpenPanel - disabling the "Open" button for certain folders.

2009-01-29 Thread Ron Aldrich
Hello, I'm trying to filter the contents of a standard NSOpenPanel dialog such that only certain folders can be opened. If I implement - (BOOL) panel:(id)sender shouldShowFilename:(NSString *) fileName; such that it returns true for the folders that I want to allow, and false for others,

Is the NSData used to create a NSImage copied or retained?

2009-01-29 Thread Development
This is a simple question, that I can not find in the documentation. When a programmer uses the NSImage's initWithData: method to create an image, the call is passed an NSData object. This is usually a data representation of a JPEG, GIF or other graphic file format (usually read from a file

Re: Interface Builder Plugin Dependency

2009-01-29 Thread Jonathan Hess
Hey Bridger - Does your plug-in and framework really need to create and crop an image while being unarchived and re-archived by ibtool? Perhaps you could retool your class so that the work happens lazily, and doesn't occur durring XIB compilation. As Joey said, ibtool to runs with no wind

  1   2   >