Alternative to poseAsClass in Mac OS X 10.5 and higher?
Apple has deprecated NSObject's poseAsClass: method for OS X v10.5 and above. Is there another way to make class posing work? ...
Apple has deprecated NSObject's poseAsClass: method for OS X v10.5 and above. Is there another way to make class posing work? ...
I've recently started working with an application written using Adobe Flex 3. We're using several deprecated functions and unfortunately we can't remove these dependencies. The documentation says to set -show-deprecated-warnings=false into the Compiler Additional Options. This isn't accepted, but I've found that using -show-deprecatio...
Why Java Vector is considered a legacy class, obsolete or deprecated? Its use isn't valid when working with concurrency? And if I don't want to manually synchronize objects and just want to use a thread-safe collection without needing to make fresh copies of the underlying array (as CopyOnWriteArrayList does), then it is fine to use Ve...
According to NSPasteboard.h (line 294 in the standard Snow Leopard copy of the Xcode SDK) it states: /* Use of pboard types should be replaced with use of UTIs. Pboard types will be deprecated in a future release. */ I've tried finding samples of using UTIs as a replacement for pboard types but I can't find anything anywhere that demo...
Hey guys, Does any one know how to do this? I'm guessing there's just some keyword I can stick after the function somewhere? EDIT: I would like for a compiler warning to be generated should anyone try and use the deprecated function, similar to the behavior seen in Apple's APIs. Cheers! Nick. ...
I am getting a warning about setText method when I am not even using it. Why does XCode display this warning message? ...
I'm maintaining an API that has deprecated some public static fields. CheckStyle complains loudly about these but I'd rather have it ignore them completely since I've dealt with the problem by marking the fields as deprecated. Specifically, the library has constants for enumeration (public static final) but the they are not marked as ...
iPhone OS 3.1.2, older program uses UITableViewCell.text, which is now deprecated. Does anyone know what the new Setter is supposed to be? Thanks! ...
In Java 1.5, to deprecate a method you would: @Deprecated int foo(int bar) { } Compiling this in Java 1.6 results in the following: Syntax error, annotations are only available if source level is 1.5 Any ideas? ...
I am just curious as to why the <center> tag in HTML was deprecated. The <center> was a simple way of quickly center-aligning blocks of text and images by encapsulating the container in a <center> tag, and I really cannot find any simpler way on how to do it now. Anyone know of any simple way on how to center "stuff" (not the margin-le...
I was using the following xaml in wpf: <Style TargetType="{x:Type Border}"> <Setter Property="BitmapEffect"> <Setter.Value> <BitmapEffectGroup> <DropShadowBitmapEffect ShadowDepth="1"/> </BitmapEffectGroup> </Setter.Value> </Setter> </Style> When I discovered that DropShadowBitmapEffect is now deprecated in favour of Dro...
The senior developer (and the only person experienced with Django in our company) has moved away and left us. Shortly after this (following his instructions) we pushed a site live onto a shared server (we have full control over the server) and updated the version of Django to the latest release for the new site to work. Since then we ha...
In Java, if you import a deprecated class: import SomeDeprecatedClass; You get this warning: The type SomeDeprecatedClass is deprecated Is there a way to suppress this warning? ...
So, according the W3C spec, the 'start' attribute in an ordered list is deprecated. If you want to continue a list that's been broken up by a series of heading, you might have: <ol start="15"> But that would not be allowed. The questions is how else could you/would you do it other than that which works in current browsers? Mission i...
I'm trying to create a Date like this: date = new Date(year-1900,mon-1,day,hrs,min,sec); and Eclips gives me this warning: "The constructor Date(int,int,int,int,int) is deprecated". What does it mean for a constructor to be deprecated? What can I do? ...
Hi, I'm facing an issue with c++ on vs2005 and also vs2008... here's how you can reproduce the issue.... create a new (c++) project called 'test' (file|new|project) select "Windows Forms Application" and add the 'stdio.h' include and the code fragment below into the test.cpp source file..... -------------------start of snippet-------...
If I set the Base + Active SDK of an iPhone app to 3.0 and the Deployment Target to 2.2, can I use the new versions of functions on 2.2 devices? For example, UITableViewCell now requires an image to be set using [cell.imageView setImage:image], whereas in 2.2, you'd call [cell setImage:image]. Will using the new [cell.imageView setImage...
Following this thread: How to handle functions deprecation in library? I want to find a way to track all calls to the deprecated function so I can make sure I get them all replaced before the function is removed. Given the following PHP methods /* @deprecated - just use getBar() */ function getFoo(){ return getBar(); } function ...
After the newest Facebook update for publishing news feed, it seems that it doesn't support html code (like a href) inside the new feed content anymore But I still see feeds with click-able link inside the content, how to do that? below are the images of the feeds that have link inside the feed content ...
Do anyone know a good alternative for the deprecated eregi_replace function? I need it for this sniplet: $pattern = "([a-z0-9][_a-z0-9.-]+@([0-9a-z][_0-9a-z-]+\.)+[a-z]{2,6})"; $replace = "<a href=\"mailto:\\1\">\\1</a>"; $text = eregi_replace($pattern, $replace, $text); Thanks! ...