Re: Drag&Drop image opacity

2020-11-16 Thread Howard Moon via Cocoa-dev
-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/howard%40antarestech.com > > This email sent to how...@antarestech.com > ___ Cocoa-dev mailing list (Cocoa

Re: Rotate a standard Cocoa control?

2015-05-09 Thread howard
southeast through the knob's center, so that either vertical or horizontal movements work to turn them. -Howard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
Oh, ok, thanks! Yes, that works, simply removing the (assign) or (retain) (leaving it as the default, strong). It's hard to follow examples I find on the internet since so many are out of date or don't use ARC, and there's no easy way to tell them apart. Thanks! -Ho

Re: Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
I think I resolved it… my data object's members were all declared using @property(assign). I changed those all to @property(retain), and it works now. Thanks, Howard On Oct 15, 2014, at 1:42 PM, Howard Moon wrote: > Hi, > > I'm working on my first ARC-

Proper way to retain member of AppDelegate?

2014-10-15 Thread Howard Moon
I keep that member data object alive so that my delegate's actions can access it? Thanks, Howard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Crash from NSURLConnection if delegate released too soon?

2014-08-27 Thread howard
27;t enter into my code (which makes sense, since my classes have all been destroyed already). But if I leave the plug-in open until those connections are cleaned up, then there is no problem. Not good, but not sure if there's anything I can do at this point

Re: Crash from NSURLConnection if delegate released too soon?

2014-08-25 Thread Howard Moon
On Aug 25, 2014, at 2:13 PM, Jens Alfke wrote: > >> On Aug 25, 2014, at 1:43 PM, Howard Moon wrote: >> >> The Apple docs show simply setting the connection and receivedData to nil, >> instead of calling release on them. > > Do you have a strong [sic]

Re: Crash from NSURLConnection if delegate released too soon?

2014-08-25 Thread Howard Moon
done by this instance or by another instance of the plug-in). It should be simple enough to just follow the guidelines and Apple's example, but I've spent a few days trying to get this stupid thing to work! Thanks, Howard On Aug 25, 2014, at 9:54 AM, Jens Alfke wrote: >

Re: Crash from NSURLConnection if delegate released too soon?

2014-08-25 Thread Howard Moon
Ok, I fixed it. I was using the connection object as a member of my class, and releasing that, when I should have been releasing the connection that is given to me inside didFailWithError and connectionDidFinishLoading, not making it a member at all. Regards, Howard On Aug 25, 2014

Re: Crash from NSURLConnection if delegate released too soon?

2014-08-25 Thread Howard Moon
ence count went to 0, and then *I* released it, wouldn't it cause a crash that way, as well? I'm really stumped as to where to look. -Howard On Aug 25, 2014, at 8:15 AM, Howard Moon wrote: > Hi, > > I've got an NSURLConnection owned by an NSObject that implements

Crash from NSURLConnection if delegate released too soon?

2014-08-25 Thread Howard Moon
x27;m following the rules, but I'm just unsure why there's that one extra entry in the console, or what it has to do with the purging of the connection cache entires and how that is leading to a crash. Thanks, Howard ___ Cocoa-dev

Re: iOS database within sandbox

2014-08-22 Thread Michael A. Howard
2 choices out of the box - Core Data and SQLite Core data (once learnt) saves you a lot of time writing cookie cutter code. As for storage - the iOS platform obviously has storage limitations by device so if you’re going to target 8GB devices you’ve already got a limit but within reason an app

Re: NSNumberFormatter 10.0+ style exception with zero

2014-05-09 Thread Howard Moon
on, even if I delete the text fields and the formatter and drag&drop new ones, as long as they're inside the tab view, I get this behavior when the formatter is dragged&dropped in the xib, but no problems when the formatter is created in code. No time to track down why any more, though…

Re: NSNumberFormatter 10.0+ style exception with zero

2014-05-07 Thread Howard Moon
! Regards, Howard On May 7, 2014, at 1:47 PM, Howard Moon wrote: > Hm, it may be that something else is at play here. I did make ONE change > when porting… I put my text fields inside a tab view. I wonder if maybe > there's a problem accessing the number formatter fro

Re: NSNumberFormatter 10.0+ style exception with zero

2014-05-07 Thread Howard Moon
gging existing objects on its pages causes any problems like this? Is there a connection I've overlooked that I need to make once the objects are inside that tab view? Thanks, -Howard On May 7, 2014, at 9:34 AM, Howard Moon wrote: > Hi, > > is the 10.0+ style o

NSNumberFormatter 10.0+ style exception with zero

2014-05-07 Thread Howard Moon
upported, why is it still available in Xcode 4, and why does it compile and run, up to the point I set its value to 0? Thanks, -Howard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: IOS floating point performance

2013-08-07 Thread Howard Moon
e calculations into simpler ones, using the rules of trig (think sin2x, etc.). Another approach is to represent sines and cosines as infinite series, and combine those series in order to compute one (or two, or a few) series that you can then either compute directly (using finite approximations t

Re: There must be a live human at Apple?

2013-08-03 Thread Howard Moon
On Aug 3, 2013, at 10:28 AM, Michael Crawford wrote: > In what way am I symptomatic? > > Please Elucidate. > > Ever Faithful, > > Michael David Crawford P.E., Process Architect In your own words… www.healthyplace.com/thought-disorders/living-with-sch

Re: Why is it wrong to have relationships without an inverse in Core Data?

2013-06-24 Thread Howard Moon
Now we're straying off into grammar, but… How about adding a word to indicate that you're talking about objects, as in "std::map objects" or "multimap objects"? (I'd rather be clear than save a few keystrokes any day.) -Howard On Jun 24, 2013, at 1:00

Re: NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
Correct on all counts. Especially the "cruel" part. :-) (I actually had already realized the real reason calling release was wrong, but hadn't removed that line of code yet.) Thanks, Howard On Mar 8, 2012, at 12:47 PM, Mike Abdullah wrote: > Time for me to be cruel a

Re: NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
nue along with other work in my plug-in, as if > nothing had happened. (This is all executed from a button press in a sheet.) > D'oh! I forgot the ':' in that selector... should have been respondsToSelector:@selector(setDirectory:). Silly computer, always doing what I s

Re: NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
On Mar 8, 2012, at 10:10 AM, Howard Moon wrote: > > On Mar 8, 2012, at 9:17 AM, Mike Abdullah wrote: > >> >> On 8 Mar 2012, at 14:54, Howard Moon wrote: >> >>> On Mar 8, 2012, at 6:21 AM, Mike Abdullah wrote: >>>>> >>>>> I&

Re: NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
On Mar 8, 2012, at 9:17 AM, Mike Abdullah wrote: > > On 8 Mar 2012, at 14:54, Howard Moon wrote: > >> On Mar 8, 2012, at 6:21 AM, Mike Abdullah wrote: >>>> >>>>I'm really not that familiar with Objective-C and Cocoa yet, but I'm >>&g

Re: NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
out in the folder I specified). >> Is there a case where it WON'T work? If not, then is there a way to prevent >> the warning? > > That method was introduced in 10.6. Are you perhaps building against the 10.5 > SDK or even earlier? > Ah,

NSOpenPanel may not respond to setDirectoryURL?

2012-03-08 Thread Howard Moon
ow that setDirectoryURL: is an NSSavePanel message, but NSOpenPanel derives from NSSavePanel, so why does it give me this warning? As I said, it works fine (i.e., the open panel starts out in the folder I specified). Is there a case where it WON'T work? If not, then is there a way to prevent th

Re: Modal only to another window?

2012-03-01 Thread Howard Moon
Thanks, guys! A sheet looks like just what I need here. Now I just need to figure out how to set that up in the context of vstgui. I'll ask over there if I need help with that. Thanks, Howard On Feb 29, 2012, at 7:15 PM, Graham Cox wrote: > > On 01/03/2012, at 10:05

Modal only to another window?

2012-02-29 Thread Howard Moon
preferences. And I I don't see any way to make the orderingMode permanent, such as an "alwaysOnTop" flag or something. Thanks, Howard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How do IB inspector fields relate to the actual objects?

2012-02-29 Thread Howard Moon
Thanks, Ken! On Feb 29, 2012, at 1:39 PM, Ken Thomases wrote: > On Feb 29, 2012, at 1:03 PM, Howard Moon wrote: > >> I've added a Panel to a nib for an audio plug-in I'm working on, and am >> having trouble determining how the IB Inspector settings relate to

How do IB inspector fields relate to the actual objects?

2012-02-29 Thread Howard Moon
e "style mask" properties might be the culprit, but I don't know what they do. Can someone guide me here, or point me to the appropriate documentation? (My book, Cocoa Programming for Mac OS X, Third Edition, is no help here.) Thanks, Howard __

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-24 Thread Howard Moon
but I go the opposite way, always wanting to be able to easily read what I've written. After all, the symbols themselves will go away once compiled, and the extra time and space for the characters is inconsequential (these days) when compared to the need to easily identify what the heck you&

Re: Loading existing NIB file from Cocoa?

2012-02-24 Thread Howard Moon
ar... and we got grief for stopping that! :-) -Howard P.S., Fritz, sorry for the double send, and to your personal email at that! I think I need another coffee! :-) ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Loading existing NIB file from Cocoa?

2012-02-23 Thread Howard Moon
Oh well, thanks, guys! -Howard On Feb 23, 2012, at 12:11 PM, Seth Willits wrote: > On Feb 23, 2012, at 8:49 AM, Howard Moon wrote: > >> I'm not sure how to proceed here. Is it possible to modify my .nib file in >> some manner so that it works in Cocoa (and still work

Loading existing NIB file from Cocoa?

2012-02-23 Thread Howard Moon
o support both types? Thanks, Howard ___ 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/Upda

Re: Calling an Objective-C function from C++?

2012-01-31 Thread Howard Moon
uses the Cocoa functionality from my "pure" Cocoa files. Thanks, Howard On Jan 31, 2012, at 1:10 PM, Greg Parker wrote: > On Jan 31, 2012, at 11:31 AM, Howard Moon wrote: >> How do I call from a .cpp file into a .mm file? > > Write a C or C++ function in the

Calling an Objective-C function from C++?

2012-01-31 Thread Howard Moon
o do here? All the examples I find so far show making the call from a .mm file in the first place, but I can't do that because my code is also compiled for 32-bit Carbon (and Windows). How do I call from a .cpp file into a .mm file? Thanks, Howard _

Re: How do we get rid of "application downloaded from the internet" warnings?

2011-11-01 Thread Howard Moon
I experienced the exact same symptoms as the OP when trying to open more than just a handful of .png files at once (NONE of which were downloaded from the internet, but created in Photoshop). Perhaps after some number of files is exceeded, the behavior changes? It worked fine when I opened jus

Re: How to create NSCursor from CGBitmap?

2011-10-28 Thread Howard Moon
Never mind I found it! I can create an NSBitmapImageRep using initWithCGImage:, create my NSImage using initWithSize:, and then add the representation to the image using addRepresentation:. Thanks anyway! Howard On Oct 26, 2011, at 10:17 AM, Howard Moon wrote: > Hi

How to create NSCursor from CGBitmap?

2011-10-28 Thread Howard Moon
d create NSCursor objects from those.) Thanks, Howard ___ 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 Hel

Re: Safe way to convert C String to NSString

2011-08-18 Thread Howard Siegel
If the C strings are being read in from a file, you can use the stringWithContentsOfFile:usedEncoding:error: or initWithContentsOfFile:usedEncoding:error: methods which will try to guess the encoding and return the string and the encoding it used back to you. But even these methods are just guessi

Re: How to Identify if the device is used in iAD supported Regions

2011-08-04 Thread Howard Siegel
Haven't yet ventured in to iAd territory and don't know any of the data objects involved, so could be off in left field here. Since you will always get the -bannerViewDidLoadAd: delegate callback, even for the test ad, would it be possible to look inside the ad data to see if it is the test ad

Re: UITextField Questions

2011-07-25 Thread Howard Siegel
On Mon, Jul 25, 2011 at 19:43, Brooke Gravitt wrote: > > The Xcode banter has been interesting as well - count me as one of the > folks who used ProjectBuilder/IB on NextStep and CodeWarrior & MPW on > the MacOS side. I still generally edit code in Vim, though. My > flamewars have involved those

Re: UITextField Questions

2011-07-25 Thread Howard Siegel
On Mon, Jul 25, 2011 at 18:31, Brooke Gravitt wrote: > On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz > wrote: > > Take a look at UITextInputTraits to specify a numeric keyboard. (IIRC > this can be done in IB too.) > > > > Take a look at UITextFieldDelegate's textFieldShouldEndEditing: method t

Re: Timing some code execution outside Instruments

2011-07-21 Thread Howard Siegel
Yes On Thu, Jul 21, 2011 at 10:59, Eric E. Dolecki wrote: > I'm curious if there is a way to NSLog how long some code takes to execute > (outside of using Instruments). > > In Flash one can use getTimer and see how much time passed inline. Is there > a way to do this in Obj-C? > > Would one use

Re: Malformed URL string in openURL

2011-06-07 Thread Howard Siegel
On Tue, Jun 7, 2011 at 18:20, Jens Alfke wrote: > > On Jun 7, 2011, at 6:17 PM, James Merkel wrote: > > > mapquestURLString = [NSString stringWithString:@" > http://mapq.st/?maptype=hybrid&q=39.7452,-104.98916(Test point label)”]; > > It’s not the parens that are illegal, it’s the spaces. Change

Re: encoding of file names

2011-05-23 Thread Howard Siegel
Look at NSString's decomposedStringWithCanonicalMapping and decomposedStringWithCompatibilityMapping methods. They'll map Unicode strings to normalized forms that you can then use and compare. - h On Mon, May 23, 2011 at 21:22, Chris Idou wrote: > > > If I take a string from an NSTextField wit

Re: NSDatePicker, selecting elements, and field editors

2011-05-20 Thread Howard Siegel
On Fri, May 20, 2011 at 11:51, Nick Zitzmann wrote: > I read TFM and searched TFW, and could not find answers to two questions I > have about NSDatePicker: > > > > 2. How do I select and unselect date picker elements programmatically? > setDatePickerElements: Sets a bitmask that indicates

Re: I'm given a project.pbxproj file....

2011-05-18 Thread Howard Siegel
be ok. (Just don't ask me how to do that, since I don't yet use Subversion). - h On Wed, May 18, 2011 at 14:45, R4EE wrote: > Howard, > > That was my original approach but the .xcodeproj file wants to save as > html. I then, wrongly, extracted the .pbxproj file and used it to

Re: I'm given a project.pbxproj file....

2011-05-18 Thread Howard Siegel
The .xcodeproj isn't really a folder, it just looks that way on the FTP site. On your Mac it is really a "package". You want to download all the files from that site (the .xcodeproj, the .m files, the .h file, and the .pch file). Drop 'em in a folder and double click on the .xcodeproj file to ope

Re: Defining code based on build target

2011-05-18 Thread Howard Siegel
What you are trying to do is perfectly fine to create a free vs non-free version of your app. The sticking point is how are you defining ISFREE??? The #if takes an expression which is evaluated to see if it is true (non-zero) or false (zero). Did you define ISFREE to be a non-zero numeric value??

Re: setState has no effect on an NSButton

2011-05-09 Thread Howard Siegel
>From those symptons, it certainly sounds like there is a missing/crossed connection in IB for those buttons or you are mising @property/@synthesize lines for those buttons. - h On Mon, May 9, 2011 at 18:19, Martin Batholdy wrote: > Hi, > > I have a preference window with four NSButtons that are

Re: iOS Best Practice Question

2011-04-26 Thread Howard Siegel
Someone over on StackOverflow mentioned he had written a custom class to present a UIPickerView (or a UIDatePickerView) in a UIActionSheet that slides up from the bottom of the page, and was making the code available on Github. Don't have the URL handy right now, but should be easy enough to find.

Re: Book for expert programmer about cocoa and Objective-C

2011-04-03 Thread Howard Siegel
On Sun, Apr 3, 2011 at 21:19, Scott Anguish wrote: > > On Apr 3, 2011, at 9:15 PM, Howard Siegel wrote: > > > Would you say to get Cocoa Programming by Anguish, Buck, & Yacktman > (circa > > Sept 2002), or get Cocoa Programming Developer's Handbook by David >

Re: Book for expert programmer about cocoa and Objective-C

2011-04-03 Thread Howard Siegel
No fair You have a vested interest ;-) ;-) ;-) ;-) - h On Sun, Apr 3, 2011 at 20:49, Scott Anguish wrote: > I’d second that. > > On Apr 1, 2011, at 5:31 PM, Scott Ellsworth wrote: > > > I am told that buck and yacktman's cocoa design patterns is a good source > of > > interview questions fo

Re: Book for expert programmer about cocoa and Objective-C

2011-04-03 Thread Howard Siegel
Would you say to get Cocoa Programming by Anguish, Buck, & Yacktman (circa Sept 2002), or get Cocoa Programming Developer's Handbook by David Chisnall (circa Jan 2010), which according to Amazon is the "newer version" of the book??? - h On Fri, Apr 1, 2011 at 13:01, John Pannell wrote: > Even th

Re: does not implement the NSTextViewDelegate protocol

2011-03-31 Thread Howard Siegel
Have you properly added the protocol declaration to your class interface definition?? e.g. @interface YouClass : BaseClass {...} - h On Thu, Mar 31, 2011 at 16:09, JAMES ROGERS wrote: > Everything works but I am getting the following: > > Warning: Class "WinKeyer2AppDelegate" does not imp

Re: Programmatically created NSView subclasses, and mouse events

2011-02-18 Thread Howard Moon
behaves as I thought it should. My base class behavior works fine for those classes that don't want to change it, and the classes that do want custom behavior get it. (Ok, only one class changes it so far, but it works! :-)) Lesson for the day: NEVER ignore the warnings, ESPEC

Re: Programmatically created NSView subclasses, and mouse events

2011-02-18 Thread Howard Moon
gurable. Partially. Also, I have existing code (for Mac and Windows, AU, VST and RTAS) that generates the view hierarchy and parameters from XML. I'd like to leverage that existing code base as much as possible, and mirror it in Objective-C(++) in order to support 64-bit and remove the V

Programmatically created NSView subclasses, and mouse events

2011-02-17 Thread Howard Moon
27;m reading my little eyeballs out, but just can't find much info on programatically-created NSView hierarchies (my Cocoa programming book is all NIB-based stuff). Thanks, Howard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

Re: test if folder contains file based on NSURLs

2010-04-30 Thread Howard Siegel
That will only work if all of the NSURLs all either absolute or relative, and are all either based on the same physical folder paths or are based on the same set of aliases/links. If there are different paths based on different aliases or links, then they won't match. You might think about using

Re: recursion anxiety

2010-03-25 Thread Howard Siegel
You never seem to be capturing the result of the recursive calls for return to the caller. You final if block should look like this: if(([endNode depth] < ([self contextDepth] - 1)) && ([mutableSeq count] > 1) && (found == YES)) { [mutableSeq removeObjectAtIndex:0];

Re: Carbon is C++?

2010-02-25 Thread Howard Siegel
http://developer.apple.com/carbon/ http://en.wikipedia.org/wiki/Carbon_%28API%29 On Thu, Feb 25, 2010 at 15:40, Chunk 1978 wrote: > is Apple's Carbon basically code written in C++, while Cocoa is > written in Objective-C? should developers avoid using frameworks > written in C++ (like some sou

Re: A password strength checker

2010-01-11 Thread Howard Siegel
, Jim Turner wrote: > Awesome find, Howard. I've needed a password strength algorithm in the > past and never could find one. Plus, the strength computed by the > Password Assistant is questionable at best. Given a password of > '' (20 lowercase &#

Re: A password strength checker

2010-01-10 Thread Howard Siegel
Have a look at the source code for KeePass Password Safe ( http://keepass.info/). It has a password generator and strength computation. Version 1.x is written in C++ for MS Windows (using MFC). Version 2.x is a rewrite in C# for .NET. It has been ported as KeyPassX for Mac OS X and Linux. - h O

Re: Cocoa Programming for Mac OsX Third Edition eBook search

2008-10-05 Thread Howard Oakley
itions does work with several different formats protected by Adobe DRM, including protected PDF, and Open eBooks (.epub or Adept) that are similarly protected. I do not think that it works with BBeB (Marlin) eBooks, though. Hence my question. Howard. Dr Howard Oakley The Works columnist for MacU

Re: Cocoa Programming for Mac OsX Third Edition eBook search

2008-10-05 Thread Howard Oakley
version 1.6 and works perfectly well here for such DRMed titles, under Leopard, in Windows form under VMware, and on a suitably authorised Sony Reader... Howard. Dr Howard Oakley The Works columnist for MacUser magazine (UK) http://www.macuser.co.uk/ http://www.ehnoakley.com/ __

Which framework for Wifi?

2008-05-27 Thread Howard Shere
Which Apple framework would I use to interact with the wireless settings? I need to be able to get a list of the current visible networks, change networks, etc. from within my app. Howard Shere http://www.livejournal.com/users/realgreendragon/ Altair 8800a to Mac OS X so far

NSComboBox adjustments

2008-05-06 Thread Howard Shere
text not appear at all. Obviously it does something with regards to focus (I think). Any suggestions? Howard Shere http://www.livejournal.com/users/realgreendragon/ Altair 8800a to Mac OS X so far... ___ Cocoa-dev mailing list (Cocoa-dev

multiplex serial port data

2008-02-27 Thread Howard Shere
written in user space or will i have to write a driver to do it? Is there a better list to ask this question on? Howard Shere http://www.livejournal.com/users/realgreendragon/ Altair 8800a to Mac OS X so far... ___ Cocoa-dev mailing list (Cocoa-dev