deprecated

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? ...

How does one disable deprecated warnings in Flex 3?

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 class is considered obsolete or deprecated?

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...

pboard types will be deprecated

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...

How do I flag a function as being deprecated in an iPhone Objective C header file?

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. ...

Why am I getting a deprecated warning in XCode

I am getting a warning about setText method when I am not even using it. Why does XCode display this warning message? ...

Can I disable CheckStyle complaints for deprecated methods and classes?

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 ...

what has replaced UITableViewCell setText now that setText is deprecated?

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! ...

Deprecate in Java 1.6

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? ...

Why is the <center> tag deprecated in HTML?

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...

How can I know that a xaml is deprecated?

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...

Django deprecated tags / Beginner

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...

Suppress deprecated import warning in Java

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? ...

Marking up an ordered list to start at point after 1

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...

The constructor Date(...) is deprecated. What does it mean? (Java)

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? ...

Deprecated functions not spotted if using "System::Threading::ThreadState" (and others!) C++ VS2005/2008

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-------...

Using iPhone OS 3.0 function calls in place of deprecated 2.2 function calls on 2.2 devices

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...

Tracking down use of functions marked for deprecation

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 ...

facebook application: how to put html code like 'a href' inside news feed content? (After the newest api update)

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 ...

Alternative for deprecated PHP function: eregi_replace

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! ...