Gets attributes and priority for the category.
category
a View.
the category.
place where priority of the category will be stored.
MarkAttributes for the category. The object belongs to this, so it must not be unreffed.