Re: libcrypto linking problem in Leopard
On Jan 2, 2014, at 11:15 PM, Appa Rao Mulpuri appar...@ivycomptech.com wrote: I am using Mac OS X 10.8 SDK for the development and deployment target set to Mac OS 10.5. I am using libcrypto dylib in my code base, application is working fine in all the OS, except in Leopard. Application is failing to launch in Leopard and giving the Library not loaded error. As Kyle says, you shouldn’t use those APIs. What functionality is it you need? You should look at using CommonCrypto and the Security framework instead. CommonCrypto handles most basic needs, and it’s in the system framework so you don’t need to link against anything extra. —Jens ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: libcrypto linking problem in Leopard
Le 3 janv. 2014 à 08:15, Appa Rao Mulpuri appar...@ivycomptech.com a écrit : Hi List, I am using Mac OS X 10.8 SDK for the development and deployment target set to Mac OS 10.5. I am using libcrypto dylib in my code base, application is working fine in all the OS, except in Leopard. Application is failing to launch in Leopard and giving the Library not loaded error. Library not found: /usr/lib/libcrypto.0.9.8.dylib Reason: no suitable image found. I tried to build the application on mavericks with libcrypto.0.9.7.dylib by updating the libcrypto.dylib alias in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib, but no luck. Its giving me compile time errors saying symbols not found. I primarily wants to move to Mavericks for my regular development and take advantage of LLVM compiler for its greater speed (compared with GCC). http://stackoverflow.com/questions/2616738/linking-to-libcrypto-for-leopard gone though this url. Solution is available if you are using the 10.6 SDK for development. To make it work with 10.6 SDK + Xcode 5, copied 10.6 and 10.7 sdks into /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/, but unfortunately Xcode 5 is not displaying them in the Build settings window. Is there any way to get rid of the libCrypto linking issue? Regards, The simplest advice is don't use libcrypto. If you just need simple functionality, you may have a look at the CommonCrypto API which is partially available on 10.5 ( I think Digest and Cryptors where available at this time). If you need something more complex, you should use the Security framework, unfortunately the whole 10.5 API (CDSA) has been deprecated in favor of a cleaner but incompatible API. So you will have to write the code twice if you want to support 10.5 and be futur proof. -- Jean-Daniel ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Status Bar problem
This works: MyViewController *wwc = ... self.navController = [[UINavigationController alloc] initWithRootViewController: wwc ]; self.window.rootViewController = self.navController; In the Simulator for a iPhone 3.5 I see: UITableView:; frame = (0 0; 320 460); autoresize = W+H clipsToBounds = YES; UIViewControllerWrapperView: frame = (0 0; 320 460); autoresize = W+H; UINavigationTransitionView:; frame = (0 0; 320 460); autoresize = W+H; clipsToBounds = YES; UILayoutContainerView:;frame = (0 20; 320 460); autoresize = W+H; UIWindow:; frame = (0 0; 320 480); autoresize = W+H; When I do Hardware →Toggle In-Call Status Bar the UILayoutContainerView changes: (0 0; 320 480) ↔ (0 20; 320 460) But the iPad version does NOT work (status Bar overlaps): UISplitViewController *spv = [ [ UISplitViewController alloc ] init ]; spv.viewControllers = @[ wwc, someOtherViewController ]; self.window.rootViewController = spv; In the Simulator for Retina iPad I see: UITableView:; frame = (0 0; 320 1024); clipsToBounds = YES; UILayoutContainerView:;frame = (0 0; 768 1024); autoresize = W+H; UIWindow:; frame = (0 0; 768 1024); autoresize = W+H; When I Toggle In-Call Status Bar the UILayoutContainerView does not change. BUT: here the status bar overlaps the top of the UITableView, which looks rather ugly. What am I doing wrong? Gerriet. ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Status Bar problem
But the iPad version does NOT work (status Bar overlaps): ... When I Toggle In-Call Status Bar the UILayoutContainerView does not change. BUT: here the status bar overlaps the top of the UITableView, which looks rather ugly. What am I doing wrong? What does the in-call status bar on iPad mean anyway? You can't make calls on them. ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Status Bar problem
Le 3 Jan 2014 à 16:54, Roland King r...@rols.org a écrit : But the iPad version does NOT work (status Bar overlaps): ... When I Toggle In-Call Status Bar the UILayoutContainerView does not change. BUT: here the status bar overlaps the top of the UITableView, which looks rather ugly. What am I doing wrong? What does the in-call status bar on iPad mean anyway? You can't make calls on them. Even the normal status bar overlaps my TableView. ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
10.9 breaks overriding -[NSWindowController windowTitleForDocumentDisplayName:]
If you own an app which overrides -[NSWindowController windowTitleForDocumentDisplayName:] to provide a custom document window title, for example, to append a suffix, it probably has a little break in 10.9… 1. Create a new document. 2. Click in the menu: File Duplicate. A new window appears, and the title in the title bar of the new window is editable, has keyboard focus and all characters are selected for editing. 3. Begin typing a title. Expected Results: Characters you type should appear immediately. Actual Results: Characters do not appear until you have typed several, probably enough to be as wide as the appended suffix. Maybe it’s wrongly subtracting the width of the appended suffix in calculating the width of the field editor. The duplicated document also seems to be more susceptible to those damned performSynchronousWaiting… autosave deadlocks (I had one happen to me in TextEdit.app recently), but, as always, these are not reproducible. I’ve filed this as Apple Bug ID 15736644 with a demo project. I’m not looking for a workaround, because I decided that my appended suffix was not really needed anyhow. My workaround is to simply remove my override of -[NSWindowController windowTitleForDocumentDisplayName:]. ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: libcrypto linking problem in Leopard
On Jan 3, 2014, at 2:37 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: The simplest advice is don't use libcrypto. If you just need simple functionality, you may have a look at the CommonCrypto API which is partially available on 10.5 ( I think Digest and Cryptors where available at this time). If you need something more complex, you should use the Security framework, unfortunately the whole 10.5 API (CDSA) has been deprecated in favor of a cleaner but incompatible API. So you will have to write the code twice if you want to support 10.5 and be futur proof. Unfortunately, if you're using asymmetric encryption, you have to use the deprecated CDSA APIs, since (AFAIK) the newer APIs don't support it. Charles ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSShadow with [bezierPath addClip]
David, Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow, when there is no such problem with QTMovieLayer in the same environment... === Message: 1 Date: Wed, 01 Jan 2014 17:44:01 -0800 From: David Duncan david.dun...@apple.com To: Leonardo mac.iphone@gmail.com Cc: Cocoa-dev cocoa-dev@lists.apple.com Subject: Re: NSShadow with [bezierPath addClip] Message-ID: a9706c39-4467-4b30-8025-3cb6c65cd...@apple.com Content-Type: text/plain; charset=us-ascii In CoreGraphics the way you would do this is to setup your shadow parameters, then start a transparency layer, do your drawing there, then composite that back to the original context. Something like this: CGContextSetShadow(context, shadowOffset, shadowBlur); CGContextBeginTransparencyLayer(context, NULL); // do your drawing CGContextEndTransparencyLayer(context); You could get the graphicsPort from the NSGraphicsContext to call the transperancy layer methods and otherwise stick to NSGraphics stuff. On Dec 31, 2013, at 4:15 AM, Leonardo mac.iphone@gmail.com wrote: In my NSView subclass, I have to draw an image within a bezierPath and apply an NSShadow to the result. So within the drawRect: method I add [bezierPath addClip]; [mImage drawInRect:inRect fromRect:fromRect operation:NSCompositeSourceOver fraction:mOpacity]; It works. The image gets clipped by the path. Now I would like to apply the NSShadow to the result, so before those lines above I add [bezierPath addClip]; [mShadow set]; [mImage drawInRect:inRect fromRect:fromRect operation:NSCompositeSourceOver fraction:mOpacity]; I can't get the shadow drawn because the bezierPath is clipping the drawing area where the shadow should fall. How to solve this trouble? I have tried to use a layer, but I get weird results when I resize, rotate and modify other parameters of the view.Regards -- Leonardo ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com This email sent to david.dun...@apple.com -- David Duncan ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSShadow with [bezierPath addClip]
On Jan 3, 2014, at 11:09 AM, Gordon Apple g...@ed4u.com wrote: David, Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow, when there is no such problem with QTMovieLayer in the same environment... Is masksToBounds set to YES on the layer? -- David Duncan ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: libcrypto linking problem in Leopard
On Jan 3, 2014, at 2:37 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: The simplest advice is don't use libcrypto. If you just need simple functionality, you may have a look at the CommonCrypto API which is partially available on 10.5 ( I think Digest and Cryptors where available at this time). If you need something more complex, you should use the Security framework, unfortunately the whole 10.5 API (CDSA) has been deprecated in favor of a cleaner but incompatible API. So you will have to write the code twice if you want to support 10.5 and be futur proof. Unfortunately, if you're using asymmetric encryption, you have to use the deprecated CDSA APIs, since (AFAIK) the newer APIs don't support it. Charles I had the same problem with libnetsnmp and solved it with a Run Script build phase. The linker puts the versioned dylib in the executable even though you include the non-versioned dylib, this switches the versioned back to non-versioned. install_name_tool -change ³versioned dylib² ³non-versioned dylib $TARGET_BUILD_DIR/$EXECUTABLE_PATH² In my case: install_name_tool -change /usr/lib/libnetsnmp.15.dylib /usr/lib/libnetsnmp.dylib $TARGET_BUILD_DIR/$EXECUTABLE_PATH Hope this helps, Dave ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSShadow with [bezierPath addClip]
The default of masksToBounds in CALayer is NO. I had my subclass of AVPlayerLayer log it, and it does show it is still NO. On 1/3/14 3:18 PM, David Duncan david.dun...@apple.com wrote: On Jan 3, 2014, at 11:09 AM, Gordon Apple g...@ed4u.com wrote: David, Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow, when there is no such problem with QTMovieLayer in the same environment... Is masksToBounds set to YES on the layer? -- David Duncan ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSShadow with [bezierPath addClip]
Whoa! I fired that off without thinking. The problem was with AVCapturePreviewLayer, not AVPlayerLayer. I logged that and apparently it sets it to YES internally. I set it to NO and am now getting a shadow for the unmasked version. However, I do (optionally) apply a shaped masking layer, which kills the shadow. If I remember correctly, I did not have this problem with QTCapturePreviewLayer using the same code. But at least now, I have something to look into. Thanks. On 1/3/14 4:29 PM, Gordon Apple g...@ed4u.com wrote: The default of masksToBounds in CALayer is NO. I had my subclass of AVPlayerLayer log it, and it does show it is still NO. On 1/3/14 3:18 PM, David Duncan david.dun...@apple.com wrote: On Jan 3, 2014, at 11:09 AM, Gordon Apple g...@ed4u.com wrote: David, Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow, when there is no such problem with QTMovieLayer in the same environment... Is masksToBounds set to YES on the layer? -- David Duncan ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Memory Leak on UIImage resizableImageWithCapInsets
Hi, Thank you for the reference. I want to try with replacing [UIImage imageNamed:] method with [UIImage imageWithContentsOfFile:] to check for memory leak. As my Images are stored in Image asset(Images.xcassets). I dont know how to read the image from image asset. [[NSBundle mainBundle] pathForResource:@SliderMaximum ofType:@png] returns nil. Image Asset Name : Images.xcasset Image Name : SliderMaximum.png / slidermaxi...@2x.png Thank you Sasikumar JP On Fri, Jan 3, 2014 at 10:49 AM, Appa Rao Mulpuri appar...@ivycomptech.comwrote: will helps you probably ‹ http://stackoverflow.com/questions/14264598/instrument-and-leaks Regards, Apparao Mulpuri On 1/3/14 10:41 AM, Sasikumar JP jps...@gmail.com wrote: Apprao, I forgot to mention that this code uses ARC. so release not required. Thank you Sasikumar JP Sent from my iPhone On Jan 3, 2014, at 10:39 AM, Appa Rao Mulpuri appar...@ivycomptech.com wrote: Add [volumeView release] before making it to nil. Regards, Apparao Mulpuri Senior Systems Analyst, Mac Poker IVY Comptech Private Limited 6th Floor, Block B, Divyasree Omega, Kondapur, Hyderabad-500081. Mobile + 91 (0) 988 500 4790 DD + 91 (0) 40 4472 1000 ext: 4391 On 1/3/14 10:16 AM, Sasikumar JP jps...@gmail.com wrote: Hi, I am using the following code to create Custom VolumeSlider. Is there anything wrong with this implementation. Instruments identifies the memory leak resizableImageWithCapInsets call. MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:self. volumeSliderView.bounds]; [volumeView setMaximumVolumeSliderImage:[[UIImage imageNamed: @SliderMaximum] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 10)] forState:UIControlStateNormal]; [volumeView setMinimumVolumeSliderImage:[[UIImage imageNamed: @SliderMinimum] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 0)] forState:UIControlStateNormal]; [volumeView setRouteButtonImage:[UIImage imageNamed:@Airplay] forState :UIControlStateNormal]; [volumeView setVolumeThumbImage:[UIImage imageNamed:@VolumeThumb] forState:UIControlStateNormal]; [self.volumeSliderView addSubview:volumeView]; volumeView = nil; Any help is highly appreciated. Thank you Sasikumar JP ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/apparaom%40ivycomptech .c om This email sent to appar...@ivycomptech.com This email and any attachments are confidential, and may be legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system. Any views or opinions are solely those of the sender. This communication is not intended to form a binding contract unless expressly indicated to the contrary and properly authorised. Any actions taken on the basis of this email are at the recipient's own risk. This email and any attachments are confidential, and may be legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system. Any views or opinions are solely those of the sender. This communication is not intended to form a binding contract unless expressly indicated to the contrary and properly authorised. Any actions taken on the basis of this email are at the recipient's own risk. ___ 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/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com