StatusBar in searchController and searchResultsController problems : iOS 8

2015-02-03 Thread adelma...@gmail.com
Hi, here is my problem, will be glad if anyone can provide some help. In my AppDeleagate's didFinishLaunchingWithOptions: method i have a method [self configureUINavigationControllerStlyle]; which configures the status bar and all the navigation bar appearance of my app (I have UINavigationCont

Re: When I rotate the MKMapView with transform, setCenter not working.

2014-10-31 Thread sonofsky2...@gmail.com
Hi, I have solved this problem. Do not change the frame of map view when it’s transform does not equal to CGAffineTransformIdentity. Best Regards, Sunny Lee > 在 2014年10月31日,上午12:54,sonofsky2...@gmail.com 写道: > > Hi all, > > I rotate the MKMapView with setting the rotation

When I rotate the MKMapView with transform, setCenter not working.

2014-10-30 Thread sonofsky2...@gmail.com
Hi all, I rotate the MKMapView with setting the rotation transform. When I use setCenter method to change the center coordinate of the map, the location of this coordinate not in the center. Does anyone know what happened, and how to solve this problem? Below is the code snipt. - (void)viewDi

Re: XPCService not getting launched from app

2014-10-10 Thread excelpbhardwaj...@gmail.com
0gmail.com This email sent to excelpbhardwaj...@gmail.com ___ 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/Unsubs

Re: Best practice for creating a temporary file

2014-09-02 Thread excelpbhardwaj...@gmail.com
/lists.apple.com/mailman/options/cocoa-dev/excelpbhardwaj999%40gmail.com This email sent to excelpbhardwaj...@gmail.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

In Av Foundation, animationTool does not work, when using customVideoCompositor

2014-07-23 Thread sonofsky2...@gmail.com
Hi all, I use AV Foundation for video cutting. I make a custom video compositor to compose the video. I create some CATextLayer for showing text and I add these layers to videoComposition’s animation tool. But the text not show in the exported video. Any one can give me some advices about how t

Can an iPhone5 be a USB Host device?

2014-06-04 Thread sonofsky2...@gmail.com
Hi all, Does anyone know weather an iPhone5 can be a USB Host Device? I have a USB Slave device, I want to connect this device to iPhone5. I will apply a MFI Licensees. Best regards, Sunny ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

NSButton Doesn't Respond to Click When it's inside M3NavigationView

2012-10-11 Thread jun1st.f...@gmail.com
I'm using [M3NavigationView] (http://stackoverflow.com/questions/3837556/navigation-application-in-mac) to do view navigations, but there I got a problem when push one view inside(some animation happens here), A button doesn't responds to mouse click most of the time, I'll have to click it twi

NSTextView frame issue inside NSTableView

2012-09-13 Thread jun1st.f...@gmail.com
knows why? thanks in advance. -- jun1st.f...@gmail.com Sent with Sparrow (http://www.sparrowmailapp.com/?sig) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: trackingAreas can be snuck up on without triggering?

2012-05-21 Thread mlist0...@gmail.com
hind the scenes with the tracking rects. > > - Original Message ----- > From: mlist0...@gmail.com > To: "Lee Ann Rucker" > Cc: "Cocoa Dev" > Sent: Sunday, May 20, 2012 11:11:51 AM > Subject: Re: trackingAreas can be snuck up on without triggering? >

Re: trackingAreas can be snuck up on without triggering?

2012-05-20 Thread mlist0...@gmail.com
On May 20, 2012, at 10:45 AM, Lee Ann Rucker wrote: > But if you're only updating the cursor, why not try addCursorRect:cursor: ? > Presumably that's smart enough to know about the grow zone. The docs note that -addCursorRect:cursor: is "legacy api", supplanted in Leopard by... tracking rects!

Re: trackingAreas can be snuck up on without triggering?

2012-05-20 Thread mlist0...@gmail.com
Belt *and* suspenders? ;) _murat On May 20, 2012, at 7:43 AM, Quincey Morris wrote: > On May 20, 2012, at 02:21 , mlist0...@gmail.com wrote: > >> Your alternate approach is essentially to give up on tracking areas, no? The >> tracking area approach has an attractive simp

Re: trackingAreas can be snuck up on without triggering?

2012-05-20 Thread mlist0...@gmail.com
On May 20, 2012, at 9:02 AM, Ken Thomases wrote: > On May 20, 2012, at 10:04 AM, Kyle Sluder wrote: > >> Have you implemented -updateTrackingAreas? > > Or you can try specifying NSTrackingInVisibleRect to take care of much tedium > for you. Nope, didn't help either. _murat __

Re: trackingAreas can be snuck up on without triggering?

2012-05-20 Thread mlist0...@gmail.com
On May 20, 2012, at 8:04 AM, Kyle Sluder wrote: > Have you implemented -updateTrackingAreas? Implementing it did not help. Not a surprise since my view doesn't change geometry. _murat ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: trackingAreas can be snuck up on without triggering?

2012-05-20 Thread mlist0...@gmail.com
Morris wrote: > On May 19, 2012, at 22:10 , mlist0...@gmail.com wrote: > >> If I whip the mouse into the window's content area, my cursorUpdate method >> is called and I see the correct cursor. If I slowly sneak the mouse into my >> window's content area, I se

trackingAreas can be snuck up on without triggering?

2012-05-19 Thread mlist0...@gmail.com
I have a view for which I am adding a tracking area so that I can update the cursor. The view entirely fills my window and is the only view in the window's content view. The tracking area is being registered thusly: - (void) awakeFromNib { NSTrackingArea* trackingArea = [[NSTrackingArea all

_updateTrackingAreas really slow

2012-05-17 Thread mlist0...@gmail.com
I have an NSCollectionView with really simple (i.e. no tracking areas) item views. In a test case of about 1500 items, scrolling gets unacceptably choppy. I've tracked this down to calls to a private method, -[NSView _updateTrackingAreas]. While scrolling, _updateTrackingAreas is called for

Re: multi-window document best practices?

2012-05-13 Thread mlist0...@gmail.com
On May 13, 2012, at 3:07 PM, Willeke wrote: > How to Subclass NSWindowController: The NSWindowController subclass instance > should be the File’s Owner for the nib... Thank you. I missed this, probably because I'm not actually subclassing NSWindowController. But it settles it as far as I'm con

Re: multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
On May 12, 2012, at 5:55 PM, Kyle Sluder wrote: > You are correct that nothing in the docs prohibits passing the document as > the file's owner argument for window controllers you construct yourself. And > in the case of a single window controller, it might work—though this is not > guaranteed

Re: multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
On May 12, 2012, at 4:45 PM, Kyle Sluder wrote: > Document-as-File's-Owner only makes sense if you aren't overriding > -makeWindowControllers. I don't think that's the case. Certainly nothing in the docs suggest it. Went for a drive and reflected on this a bit. I think the fact that there's a

multi-window document best practices?

2012-05-12 Thread mlist0...@gmail.com
I've have come across some surprising behavior when trying to implement a document with two windows, each loaded from its own nib. In my NSDocument subclass, I have - (void) makeWindowControllers { NSWindowController* wc1 = [[[NSWindowController alloc] initWithWindowNibName:@"MNKDocument"

Re: Minimal document-based app

2012-05-01 Thread mlist0...@gmail.com
moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/mlist0987%40gmail.com > > This email sent to mlist0...@gmail.com ___ Cocoa-dev mail

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-03-14 Thread lpeng...@gmail.com
Re: Get OS version of iOS device connected to Mac OS X (Payal Mundhada) On 2012年1月19日, at 18:40, cocoa-dev-requ...@lists.apple.com wrote: > Get OS version of iOS device connected to Mac OS X > (Payal Mundhada) ___ Cocoa-dev mailing list (Coc

Re: Cocoa-dev Digest, Vol 9, Issue 39

2012-01-23 Thread lpeng...@gmail.com
(lpeng...@gmail.com) 10. Re: While running our iPhone app,the screen sometimes goes white and locks up. Any idea why? (G S) 11. Changing Album Name property of the audio book track,does Jim Lin 在 2012-1-23,17:18,cocoa-dev-requ...@lists.apple.com 写道: > Re: Versi

Re: Cocoa-dev Digest, Vol 9, Issue 38

2012-01-22 Thread lpeng...@gmail.com
Re: Cocoa-dev Digest, Vol 9, Issue 36 (lpeng...@gmail.com) 2. NSXMLParser, streams, multiple threads, and crashing (Thomas Davie) 3. Re: Strange renaming of Documents folder (Martin Hewitson) 4. Re: NSXMLParser, streams, multiple threads, and crashing (Andreas Grosam) 5. Re

Re: Cocoa-dev Digest, Vol 9, Issue 37

2012-01-22 Thread lpeng...@gmail.com
Re: auto malloc[27012]: attempted to remove unregistered weak referrer (Sean McBride) 2. Re: Strange renaming of Documents folder (Ken Thomases) 3. Re: Strange renaming of Documents folder (John Joyce) 4. Re: NSSlider and arrangedObjects (Quincey Morris) 5. Re: Strange renaming of Docu

Re: Cocoa-dev Digest, Vol 9, Issue 36

2012-01-22 Thread lpeng...@gmail.com
Re: Cocoa-dev Digest, Vol 9, Issue 33 (lpeng...@gmail.com) 8. Re: Cocoa-dev Digest, Vol 9, Issue 33 (lpeng...@gmail.com) 9. Re: Cocoa-dev Digest, Vol 9, Issue 34 (lpeng...@gmail.com) 10. Re: Cocoa-dev Digest, Vol 9, Issue 32 (lpeng...@gmail.com) Jim Lin 在 2012-1-22,2:31,cocoa-dev-requ

Re: Cocoa-dev Digest, Vol 9, Issue 32

2012-01-21 Thread lpeng...@gmail.com
Re: NSTextView : Scroll top when bound-to string changes (Jerry Krinock) Jim Lin 在 2012-1-21,4:00,cocoa-dev-requ...@lists.apple.com 写道: > Re: NSTextView : Scroll top when bound-to string changes > (Jerry Krinock) ___ Cocoa-dev mailing list

Re: Cocoa-dev Digest, Vol 9, Issue 34

2012-01-21 Thread lpeng...@gmail.com
Subject: Re: auto malloc[27012]: attempted to remove unregistered weak referrer Message-ID: <5c732f8d-655e-44bb-abf2-ed258af99...@snafu.org> Content-Type: text/plain; charset=us-ascii Jim Lin 在 2012-1-21,13:18,cocoa-dev-requ...@lists.apple.com 写道: > Subject: Re: auto malloc[27012]: attempted

Re: Cocoa-dev Digest, Vol 9, Issue 33

2012-01-21 Thread lpeng...@gmail.com
Re: NSTextView : Scroll top when bound-to string changes Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Jim Lin 在 2012-1-21,5:13,cocoa-dev-requ...@lists.apple.com 写道: > Re: NSTextView : Scroll top when bound-to string changes > Message-ID: > > Content-Type: text/plain; charset=

Re: Cocoa-dev Digest, Vol 9, Issue 33

2012-01-21 Thread lpeng...@gmail.com
Re: [NSTextView]: Scroll top when bound-to string changes (Kyle Sluder) Jim Lin 在 2012-1-21,5:13,cocoa-dev-requ...@lists.apple.com 写道: > NSTextView : Scroll top when bound-to string changes > (Kyle Sluder) ___ Cocoa-dev mailing list (Cocoa-

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
v.com> > Content-Type: text/plain; charset=windows-1252 > > On Jan 18, 2012, at 2:27 PM, Ken Thomases wrote: > >>> Note that you can't do this with Cocoa/Objective-C (at least Apple says you >>> shouldn't�) >> >> You can fork() and exec()

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
Re: logged: auto malloc[27012]: attempted to remove unregistered weak referrer 0xblahblah multiple times. What is most interesting is that it only happens when selecting multiple items by dragging. I first noticed it in this code: - (IBAction) showOpenPanel: (id) sender { BOOL reloadNeeded =

Re: Cocoa-dev Digest, Vol 9, Issue 28

2012-01-20 Thread lpeng...@gmail.com
My Java processes do not quit if I pipe their output to null: �NSTask *task = [NSTask new]; �[task setLaunchPath:execPath]; �[task setCurrentDirectoryPath:_directory]; �[task setArguments:arguments]; �[task setStandardError:[NSFileHandle fileHandleWithNullDevice]]; �[task setStandardOutput:[NSFileH

Re: NSTask terminates when NSApplication exits (Scott Ribe)

2012-01-20 Thread lpeng...@gmail.com
Re: NSTask terminates when NSApplication exits (Scott Ribe) Ling Peng 在 2012年1月19日,4:02,cocoa-dev-requ...@lists.apple.com 写道: > Re: NSTask terminates when NSApplication exits (Scott Ribe) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Cocoa Touch: Accessory view never calls "up outside" action?

2011-07-10 Thread mlist0...@gmail.com
I'm using a UIButton subclass as an accessory view in a table cell. I create the button in my cell's initWithStyle:reuseIdentifier: method, as shown below. Here's the problem: I touch inside my button, but even when I drag my finger out of the button and lift up, it's my "up inside" action that

Re: Why does NSArray count return NSUInteger?

2011-05-30 Thread mlist0...@gmail.com
e a few sheep off the Antrim coast. > > Julius > > > http://juliuspaintings.co.uk > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator commen

Re: Why does NSArray count return NSUInteger?

2011-05-29 Thread mlist0...@gmail.com
esult for: 3 < -2 > 2011-05-29 20:41:19.111 TestIf[4858:903] E1: wrong result for: 3 < -2 > 2011-05-29 20:41:19.111 TestIf[4858:903] F2: correct result for: 3 < -2 > 2011-05-29 20:41:19.112 TestIf[4858:903] G1: correct result for: 3

In App Purchase's SKProductsRequest not working when App is already installed on the device

2011-03-30 Thread miky...@gmail.com
> > Hi, > I am having problems testing the In App Purchase feature. If I reinstall the app on a device that has already installed the app with a previous version, the SKProductsRequest returns a response only with an object on the invalidProductIdentifiers. If I delete the app from the device and

Re: Trouble with design pattern

2011-02-18 Thread mlist0...@gmail.com
Sorry, the forward declarations go in your .h files. You still have to import your MyDocument.h in your implementation files (ie. your CustomView.m files). What warnings are you getting? As far as your nil document problem, I don't know. I suspect something is not setup correctly. In your code

Re: Key equivalents for non-menu items

2011-02-15 Thread mlist0...@gmail.com
On Feb 15, 2011, at 7:36 PM, Randy Widell wrote: > I would like to have a keyboard shortcut that tags a location on the > waveforms at the location of the mouse cursor. These commands do not make > any sense in the main menu...they could go there, but they would be clutter. Why do you think th

Re: Using NSWindow without NIB (XIB) file ?

2011-01-25 Thread mlist0...@gmail.com
This should be a FAQ. The topic of Cocoa without Interface Builder comes up on the list surprisingly frequently, usually from someone who, like you, is "trying to understand how Cocoa really works". You may be thinking that graphical UI builders (like Interface Builder) are somehow a crutch an

Re: Help on Cocoa Class references

2011-01-18 Thread mlist0...@gmail.com
On Jan 18, 2011, at 2:46 AM, Leanne Attard wrote: > When i click on the title bar… You don't normally handle titlebar clicks yourself. What are you trying to do with click on the titlebar? _murat___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSFileWrapper serializedRepresentation bloat?

2011-01-09 Thread mlist0...@gmail.com
ike one could do better. Could you file a bug please? > > -Ken > Cocoa Frameworks > > On Sat, Jan 8, 2011 at 5:16 PM, mlist0...@gmail.com > wrote: > I create an NSFileWrapper for a directory hierarchy like this (all items are > directories, no files): > > test-

NSFileWrapper serializedRepresentation bloat?

2011-01-08 Thread mlist0...@gmail.com
I create an NSFileWrapper for a directory hierarchy like this (all items are directories, no files): test-dir/ test-dir/inner-dir-a test-dir/inner-dir-b test-dir/inner-dir-c The wrapper's serialized representation weighs in at around an astounding 1mB (1,022,234 bytes)! Seems that the overhead

Re: NSTask with unzip

2010-11-27 Thread gMail.com
a: Sat, 27 Nov 2010 08:48:34 -0800 > A: Ben Haller > Cc: "gMail.com" , Cocoa List > > Oggetto: Re: NSTask with unzip > > The way I get around this is to use an NSFileHandle for standard out instead > of an NSPipe. It's a bit less efficient, but slightly more conv

OutlineView with big text editor

2010-11-27 Thread gMail.com
Hi, I have set a custom cell showing icon + text on my outlineView column. It works well, but whenever I double click on the row to edit the text, I get a text field editor bigger than the cell itself and covering the left icon. How can I make this text field editor fit the cell bounds and not cove

NSTask with unzip

2010-11-26 Thread gMail.com
Hi, I can properly unzip a zip file launching a NSTask with /usr/bin/unzip The task saves the unzipped file to the disk, then a I read the unzipped file in a NSData. Well. My question is: Can I do the same job without saving the unzipped file to the disk? I have tried to set the standard output to

Ghost outlet

2010-11-13 Thread gMail.com
Hi, I had an IBOutlet idabc; in my MYObject class header file. This outlet "abc" was properly displayed on the Inspector Connection panel on IB, when I selected the blue cube "MyObject". Well. Lately I removed the abc outlet from the header, recompiled, run, etc... But on IB I still see th

Re: RTFDFromRange returns different data

2010-11-13 Thread gMail.com
tring. Do you know any better way? Regards Leonardo > Da: Martin Wierschin > Data: Fri, 12 Nov 2010 15:34:16 -0800 > A: "gMail.com" > Cc: Cocoa Dev List > Oggetto: Re: RTFDFromRange returns different data > >> I workedaround the problem archiving the data dir

Get Started with a webplugin

2010-11-12 Thread gMail.com
Hi, I have followed the rules written on the pdf doc "WebKit Plug-In Programming Topics" but I can't make Safari load my first webplugin yet. Does a webplugin require a signature, something not reported on the docs? I run MacOS X 10.6.5, Safari 5.0.2. I compile with Xcode 3.2.3, with SDK 10.6, tar

Re: RTFDFromRange returns different data

2010-11-11 Thread gMail.com
= [NSKeyedArchiver archivedDataWithRootObject:mTextMutableString]; It works like a charm. Thanks. And I think there should always be a way to get the "same" out-data, given the same "in-variables". -- Leo > Da: glenn andreas > Data: Thu, 11 Nov 2010 08:21:18 -0600 > A: &quo

RTFDFromRange returns different data

2010-11-11 Thread gMail.com
RTFDFromRange returns different data even if I do not change the variables mTextMutableString nor mDocAttributes. I just call several time: NSData *textData = [mTextMutableString RTFDFromRange:textRange documentAttributes:mDocAttributes]; NSLog(@"textData %@", textData); And 'every time' I get a

NSData magic change

2010-11-11 Thread gMail.com
I find this issue very puzzling. I read a plist dictionary containing one ony key-value: an NSData coming a RTFD string. I read this value, I do NO changes, then I re-save it to a different plist file, and now the 2 files are different. I have inspected these 2 plist files with TextWrangler, and t

Re: Interrupt copyItemAtPath

2010-11-08 Thread gMail.com
the best solution for me. -- Leo > Da: Sherm Pendley > Data: Sun, 7 Nov 2010 19:33:26 -0500 > A: "gMail.com" > Cc: Ken Thomases , > Oggetto: Re: Interrupt copyItemAtPath > > On Sun, Nov 7, 2010 at 6:06 PM, gMail.com wrote: >> >> A quick que

Re: Interrupt copyItemAtPath

2010-11-08 Thread gMail.com
Sherm, I verified, if I quit, the file being copied gets properly deleted, because before quitting, in the metho ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Interrupt copyItemAtPath

2010-11-07 Thread gMail.com
ks, the other apps work... Could this waiting loop cause some problem? -- Leo > Da: Sherm Pendley > Data: Sun, 7 Nov 2010 16:37:19 -0500 > A: "gMail.com" > Cc: Ken Thomases , > Oggetto: Re: Interrupt copyItemAtPath > > On Sun, Nov 7, 2010 at 4:09 PM, gMail.com

Re: Interrupt copyItemAtPath

2010-11-07 Thread gMail.com
ow to interrupt the copy. For example, if the file to copy is 20GB and after 1GB copied I would like to stop the copy, how can I do? Should I delete the destination file such a way to create an error? Any idea? -- Leo > Da: Ken Thomases > Data: Sat, 6 Nov 2010 20:29:43 -0500 > A: &qu

Interrupt copyItemAtPath

2010-11-06 Thread gMail.com
I copy a 14GB file with - (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error Since the copy could take several minutes, I would grant the user the opportunity to interrupt the copy pressing a given button. Is a way to tell copyItemAtPath to break the job and

NSDrawer contentView clip

2010-10-25 Thread gMail.com
I have put some buttons within a drawer.contentView The top most button gets cut by 20 pixels because the contentView result shorter than its superview height. So, at the top of the drawer I always see a gray rectangle, 20 pixels height, where I can't draw in. Please, how can I use the whole height

Remove icon animation - Found

2010-10-21 Thread gMail.com
Forget. I have found it. I searched for the sound I recalled "fuff" and I found "poof" then I searched for "animation poof" and I found "NSAnimationEffectPoof", then NSShowAnimationEffect(NSAnimationEffectPoof, [NSEvent mouseLocation], NSZeroSize, NULL, NULL, NULL); -- Leonardo ___

Remove icon animation

2010-10-21 Thread gMail.com
Hi, when you remove an icon from the Dock you get an animation "fuff" and a sound. Well, in some of my works I reproduced the same functionality, but I can't recall which project it was. I unsuccessfully searched on the web too. Nothing. I even recall that the sound was an OS resource. And the anim

Re: NSImage is Caching

2010-10-06 Thread slasktrattena...@gmail.com
s(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com > > This email sent to slasktrattena...@gmail.com > ___ Cocoa-dev mailing list (Cocoa-dev@

Re: allKeys and allValues

2010-10-05 Thread gMail.com
while. And If I have the track dict only, I can always know its ID and retrieve its position on the Tracks dictionary. Smart. Thanks to everybody. -- Leo Da: Greg Parker Data: Mon, 4 Oct 2010 14:40:31 -0700 A: "gMail.com" Cc: "cocoa-dev@lists.apple.com List" Ogge

Re: allKeys and allValues

2010-10-04 Thread gMail.com
if([ID isEqualToString:@"inID"]) return item; } -- Leo > Da: Ken Thomases > Data: Mon, 4 Oct 2010 16:31:17 -0500 > A: "gMail.com" > Cc: > Oggetto: Re: allKeys and allValues > > On Oct 4, 2010, at 4:21 PM, gMail.com wrote: > >> On th

allKeys and allValues

2010-10-04 Thread gMail.com
Hi, On the docs I read that for both the NSDictionary's allKeys and allValues, the order of the elements in the array is not defined. Ok. But, are the two arrays aligned each other? I mean, I have a dictionary containing several entries whose key is, e.g. @"0", @"3", @"42",... I show these entries

Re: QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
rrect scheme. > > On 1 Oct 2010, at 17:38, slasktrattena...@gmail.com wrote: > >> Thanks. This was my idea too, but I was under the impression I cannot >> feed QuickTime with incoming data? Admittedly, I haven't really >> scrutinized the API. Will do now. >> >>

Re: QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
riting a custom > URL protocol that writes the incoming data to disk (or in-memory), while > passing out to QuickTime. > > On 1 Oct 2010, at 16:03, slasktrattena...@gmail.com wrote: > >> Hi, >> >> I guess the answer to my simple question is no, but figured I better >

QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
Hi, I guess the answer to my simple question is no, but figured I better ask before I go digging elsewhere. I have a QTMovie, initialized with a MP3 file downloaded from a remote server (i.e -initWithURL:). Is it possible to extract the raw data from the QTMovie object, so I can save the MP3 in i

Re: NSTimer memory management

2010-09-27 Thread slasktrattena...@gmail.com
On Sun, Sep 26, 2010 at 5:39 PM, Jeff Johnson wrote: > On Sep 23, 2010, at 6:13 PM, slasktrattena...@gmail.com wrote: > >> In this particular case, though, I might just as well get rid of the >> timer altogether and go for NSObject's >> performSelector:afterDelay:/ca

Re: NSTimer memory management

2010-09-23 Thread slasktrattena...@gmail.com
Thanks all for the input. I'll take Scott's and Gregory's advice to not retain the timer. I've seen this advocated before, but always felt uneasy about not retaining my pointers. It just goes against all I ever learned about Cocoa. In this particular case, though, I might just as well get rid of t

Re: Ports for stringWithContentsOfURL

2010-09-23 Thread gMail.com
txt using Safari, so I think he has some problem at the ports. To be honest my application appends an info at the end of the url, like this" abc.txt?version=123 when invoking stringWithContentsOfURL:encoding:error Any idea on how to solve this problem? -- Leo > Da: Andy Lee > Da

NSTimer memory management

2010-09-22 Thread slasktrattena...@gmail.com
Hi, Is this an over-release? timer = [ [NSTimer scheduledTimerWithTimeInterval: ...] retain]; ... [timer invalidate]; [timer release]; I've seen this pattern so many times I figured it was correct, although it doesn't seem to comply with the memory management rules (i. e. the timer is first impl

Ports for stringWithContentsOfURL

2010-09-17 Thread gMail.com
Hi, which port must be open on the Mac in order to get a response from the server when calling stringWithContentsOfURL ? My method calls a small file posted on my web site, so the path is a http://www... It works pretty well, but some of my clients say that they get a nil response, even if they can

Backup color label

2010-09-13 Thread gMail.com
Hi, I need to backup only these files changes (not the content): Label color in the Finder Filename (uppercase, lowercase) Permissions Lock Status So I check the st_ctime of the files and detect whether to copy or not to copy their attributes with FSSetCatalogInfo. The problem is th

Re: delayed NSWorkspaceDidTerminateApplicationNotification under 10.6?

2010-09-08 Thread slasktrattena...@gmail.com
On Thu, Sep 9, 2010 at 12:13 AM, Dave Keck wrote: > I don't think performance is going to be a big issue with the process > APIs; at any given time a user probably isn't going to have over 20 or > 30 foreground+background apps running, so even iterating over each one > shouldn't be much an issue.

Re: delayed NSWorkspaceDidTerminateApplicationNotification under 10.6?

2010-09-08 Thread slasktrattena...@gmail.com
Hi Dave, Thanks for your reply. On Wed, Sep 8, 2010 at 7:18 PM, Dave Keck wrote: >> After the release of Snow Leopard, it seems that [iTunes isRunning] >> returns YES for a short while even after the application has quit (I >> believe this applies to all apps, not just iTunes, but I haven't >> c

delayed NSWorkspaceDidTerminateApplicationNotification under 10.6?

2010-09-08 Thread slasktrattena...@gmail.com
Hello, This problem was introduced in Mac OS X 10.6 and has remained unsolved ever since. I've got a timer that polls iTunes for its player position every second. I used to use ScriptingBridge for this task: if ( [iTunes isRunning] ) { if ( [self isPlaying] ) return [iTunes playerPosition]; }

Re: Set the Cursor Position

2010-08-19 Thread mlist0...@gmail.com
Some audio software does a similar thing for adjusting on screen knobs. I much un-love it. _murat On Aug 19, 2010, at 6:43 PM, Sherm Pendley wrote: > One such exception would be 2d or 3d graphics apps, where it's > expected to have a tool that allows the user to click and drag to > scale or rot

Re: Disable return-edit in text cell

2010-08-11 Thread slasktrattena...@gmail.com
. -F On Wed, Aug 11, 2010 at 7:16 PM, Kyle Sluder wrote: > On Wed, Aug 11, 2010 at 10:12 AM, slasktrattena...@gmail.com > wrote: >> Hello, >> >> I've got a standard NSTableView with text cells. I want the field >> editor to pop up when the user clicks on the c

Disable return-edit in text cell

2010-08-11 Thread slasktrattena...@gmail.com
Hello, I've got a standard NSTableView with text cells. I want the field editor to pop up when the user clicks on the cell, but not when pressing the return key (which triggers another action). How can I accomplish this? I've got a feeling there's a real simple solution, but I just cannot find tha

Re: iPad Programming Tutorial

2010-04-26 Thread mlist0...@gmail.com
On Apr 25, 2010, at 7:01 PM, ML wrote: > Does anyone know of a resource that helps understand how to NOT use interface > builder for developing applications? Some variant of this question pops up here every now and then. Quoting from a post of my own: "Interface Builder is a fundamental part

Copy Folder Attributes of /dev

2010-04-01 Thread gMail.com
Hi, I want to copy all the folder's attributes, so instead of using the Cocoa API I have to use FSSetCatalogInfo. This requires an FSRef, so I use FSPathMakeRef or FSPathMakeRefWithOptions, e.g. err = FSPathMakeRefWithOptions((UInt8*)cSrcPath, kFSPathMakeRefDoNotFollowLeafSymlink, &srcRef, NULL);

Re: Case sensitive fileName

2010-03-29 Thread gMail.com
ld traverse SymLinks. -- Leonardo > Da: Jens Alfke > Data: Wed, 17 Mar 2010 09:07:26 -0700 > A: "gMail.com" > Cc: > Oggetto: Re: Case sensitive fileName > > > On Mar 17, 2010, at 6:35 AM, gMail.com wrote: > >> Now I need to get its real case sensi

Re: Sync .DS_Store files

2010-03-26 Thread gMail.com
Thank you Jean, I have now read that docs, so I will not copy the contents of that folder, nor copy it empty. > Da: Jean-Daniel Dupas > Data: Fri, 26 Mar 2010 14:44:20 +0100 > A: "gMail.com" > Cc: > Oggetto: Re: Sync .DS_Store files > > .fseventd is not

Re: Sync .DS_Store files

2010-03-26 Thread gMail.com
ta: Thu, 25 Mar 2010 16:08:03 -0700 > A: "gMail.com" > Cc: > Oggetto: Re: Sync .DS_Store files > > > On Mar 25, 2010, at 9:42 AM, gMail.com wrote: > >> I am trying to sync a folder containing several files and the hidden >> file >> .DS_

Sync .DS_Store files

2010-03-25 Thread gMail.com
Hi, I am trying to sync a folder containing several files and the hidden file .DS_Store. I know that this file contains special info about the directory, so I sync it too. Should I really do that? The problem is that when I modify a file, /Dst/A/B/file.txt e.g. I replace it with a newer file,

Re: ATTR_CMN_CHGTIME

2010-03-22 Thread gMail.com
s that and how should I own it, but for sure, I can quite set the ATTR_CMN_CRTIME and the ATTR_CMN_MODTIME, so I presume I own this "file system object". Any idea? -- Leonardo > Da: Ken Thomases > Data: Mon, 22 Mar 2010 03:35:52 -0500 > A: "gMail.com" > Cc: > Oggetto: R

Re: ATTR_CMN_CHGTIME

2010-03-22 Thread gMail.com
sb.st_ctime or with FSSetCatalogInfo and kFSCatInfoAttrMod or with getattrlist and ATTR_CMN_CHGTIME Regards -- Leonardo > Da: Ron Fleckner > Data: Mon, 22 Mar 2010 10:20:44 +1100 > A: "gMail.com" > Cc: > Oggetto: Re: ATTR_CMN_CHGTIME > > > On 22/03/2010, at 10:01 AM, g

ATTR_CMN_CHGTIME

2010-03-21 Thread gMail.com
Hi, I cannot find a Cocoa API to set the "Attribute Modification Date" of a file. If there is a way, may you please let me know? In the meantime, on MacOS X 10.5.8, I have been trying to use setattrlist with ATTR_CMN_CHGTIME, unsuccessfully. And setattrlist returns 0, as everything went ok. While

Re: CoreImage on threads?

2010-03-21 Thread mlist0...@gmail.com
> > > On Mar 20, 2010, at 4:36 PM, mlist0...@gmail.com wrote: > >> I'm trying to use run multiple CoreImage operations concurrently using >> NSOperation. Sometimes it works, sometimes it doesn't. Smells like what >> you'd get when trying to run mul

CoreImage on threads?

2010-03-20 Thread mlist0...@gmail.com
I'm trying to use run multiple CoreImage operations concurrently using NSOperation. Sometimes it works, sometimes it doesn't. Smells like what you'd get when trying to run multiple operations that are not thread safe. Before I dig in much deeper, am I wrong that running multiple concurrent Core

Re: Case sensitive fileName

2010-03-17 Thread gMail.com
leName %s\n", result); if(result != NULL) return [NSString stringWithCString:result encoding:NSUTF8StringEncoding]; else return filePath; } Thank you again -- Leonardo >> >> On Mar 17, 2010, at 6:35 AM, gMail.com wrote: >> &g

Re: Case sensitive fileName

2010-03-17 Thread gMail.com
2010 14:41:05 + > A: "gMail.com" , Apple Cocoa Develop Develop > > Cc: Jeremy Pereira > Oggetto: Re: Case sensitive fileName > > NSURL* url = [NSURL fileURLWithPath: path]; > NSError* error = nil; > NSArray* keysIWant = [NSArray arrayWithObject: NS

Case sensitive fileName

2010-03-17 Thread gMail.com
Hi, I have a file path /Folder/filename.txt The API fileExistsAtPath says that it exists. Now I need to get its real case sensitive file name, which is indeed e.g. "FileName.txt" How can I get it in a fast way? I thought by its inode, but I can't really know how to do that. I know I can ite

Re: File Backup Date

2010-03-16 Thread gMail.com
ue, 16 Mar 2010 12:24:01 -0400 A: "gMail.com" Cc: Oggetto: Re: File Backup Date I have no experience here, but if you are resaving the file, won't the next time it's backed up add a new backup date to the file?  On Tue, Mar 16, 2010 at 12:09 PM, gMail.com wrote: > Hi, &

File Backup Date

2010-03-16 Thread gMail.com
Hi, as you know fileAttributesAtPath contains the creation date and the modification date, but it doesn't contain the backup date (and even the lastAccessDate). So, I use FSGetCatalogInfo with kFSCatInfoBackupDate. It works well. Anyway, I have noticed that if in the Finder (MacOS X 10.6.2) I open

Re: mount dmg disk

2010-03-15 Thread gMail.com
util"]; and this way it works all the time. Regards -- Leonardo > Da: Kyle Sluder > Data: Sun, 14 Mar 2010 18:42:51 -0700 > A: "gMail.com" > Cc: Gwynne Raskind , > Oggetto: Re: mount dmg disk > > On Sun, Mar 14, 2010 at 1:41 PM, gMail.com wrote: >>

Re: mount dmg disk

2010-03-14 Thread gMail.com
ks again. Regards -- Leonardo > Da: Gwynne Raskind > Data: Sun, 14 Mar 2010 15:32:41 -0400 > A: "gMail.com" > Cc: > Oggetto: Re: mount dmg disk > > On Mar 14, 2010, at 3:22 PM, gMail.com wrote: >> Hi, >> I can't find a way in Cocoa to mount a dmg d

mount dmg disk

2010-03-14 Thread gMail.com
Hi, I can't find a way in Cocoa to mount a dmg disk. So I would try to call the shell through a NSTask. I succeed on the Terminal when executing this command line: echo -n password | hdiutil mount /Users/john/Documents/MyDmgDisk.dmg But when I pass this command line to the NSTask, I fail all the

  1   2   >